نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

تينسورفلو :: العمليات :: EncodeBase64

#include <string_ops.h>

قم بترميز السلاسل بتنسيق base64 الآمن على الويب.

ملخص

راجع المقالة التالية للحصول على مزيد من المعلومات حول تنسيق base64: en.wikipedia.org/wiki/Base64. قد تحتوي سلاسل Base64 على حشوة مع '=' في النهاية بحيث يكون طول الشفرة مضاعفًا لـ 4. انظر قسم الحشو من الارتباط أعلاه.

يعني أمان الويب أن برنامج التشفير يستخدم - و _ بدلاً من + و /.

الحجج:

  • النطاق: كائن النطاق
  • الإدخال: السلاسل المراد تشفيرها.

السمات الاختيارية (انظر Attrs ):

  • الوسادة: منطقي ما إذا كانت الحشوة مطبقة في النهايات.

عائدات:

البنائين والمدمرين

EncodeBase64 (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
EncodeBase64 (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const EncodeBase64::Attrs & attrs)

السمات العامة

operation
output

الوظائف العامة

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

وظائف ثابتة عامة

Pad (bool x)

الهياكل

tensorflow :: ops :: EncodeBase64 :: Attrs

محددات السمات الاختيارية لـ EncodeBase64 .

السمات العامة

عملية

Operation operation

انتاج

::tensorflow::Output output

الوظائف العامة

EncodeBase64

 EncodeBase64(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

EncodeBase64

 EncodeBase64(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const EncodeBase64::Attrs & attrs
)

العقدة

::tensorflow::Node * node() const 

المشغل :: tensorflow :: الإدخال

 operator::tensorflow::Input() const 

المشغل :: Tensorflow :: Output

 operator::tensorflow::Output() const 

وظائف ثابتة عامة

ضمادة

Attrs Pad(
  bool x
)