tensorflow::ops::EncodeBase64

#include <string_ops.h>

เข้ารหัสข้อความให้อยู่ในรูปแบบ base64 ที่ปลอดภัยสำหรับเว็บ

สรุป

โปรดดูบทความต่อไปนี้สำหรับข้อมูลเพิ่มเติมเกี่ยวกับรูปแบบ Base64: en.wikipedia.org/wiki/Base64 สตริง Base64 อาจมีการเติมเครื่องหมาย '=' ที่ส่วนท้ายเพื่อให้ความยาวของสตริงที่เข้ารหัสเป็นจำนวนเท่าของ 4 โปรดดูส่วน "Padding" ในลิงก์ด้านบน

คำว่า "ปลอดภัยสำหรับเว็บ" หมายความว่าตัวเข้ารหัสใช้เครื่องหมาย - และ _ แทนเครื่องหมาย + และ /

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • อินพุต: สตริงที่จะเข้ารหัส

คุณลักษณะเสริม (ดูที่ Attrs ):

  • pad: ค่าบูลีนระบุว่าจะใช้การเว้นระยะขอบที่ปลายหรือไม่

การส่งคืนสินค้า:

ตัวสร้างและตัวทำลาย

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

หน้าที่สาธารณะ

เข้ารหัสเบส64

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

เข้ารหัสเบส64

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

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const 

ฟังก์ชันคงที่สาธารณะ

แผ่นรอง

Attrs Pad(
  bool x
)