Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
tensor akışı:: işlem:: EncodeBase64
#include <string_ops.h>
Dizeleri web uyumlu base64 biçiminde kodlayın.
Özet
Base64 formatı hakkında daha fazla bilgi için aşağıdaki makaleye bakın: en.wikipedia.org/wiki/Base64. Base64 dizeleri, kodlanmış uzunluğun 4'ün katlarına sahip olması için sonunda '=' ile dolguya sahip olabilir. Yukarıdaki bağlantının Dolgu bölümüne bakın.
Web uyumlu, kodlayıcının + ve / yerine - ve _ kullandığı anlamına gelir.
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- giriş: Kodlanacak dizeler.
İsteğe bağlı özellikler (bkz. Attrs
):
- pad: Uçlara dolgu uygulanıp uygulanmadığını kontrol edin.
İade:
Genel statik işlevler |
---|
Pad (bool x) | |
Genel özellikler
Kamu işlevleri
düğüm
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[],[],null,["# tensorflow::ops::EncodeBase64 Class Reference\n\ntensorflow::ops::EncodeBase64\n=============================\n\n`#include \u003cstring_ops.h\u003e`\n\nEncode strings into web-safe base64 format.\n\nSummary\n-------\n\nRefer to the following article for more information on base64 format: en.wikipedia.org/wiki/Base64. Base64 strings may have padding with '=' at the end so that the encoded has length multiple of 4. See Padding section of the link above.\n\nWeb-safe means that the encoder uses - and _ instead of + and /.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input: Strings to be encoded.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/encode-base64/attrs#structtensorflow_1_1ops_1_1_encode_base64_1_1_attrs)):\n\n- pad: Bool whether padding is applied at the ends.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): [Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input) strings encoded in base64.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [EncodeBase64](#classtensorflow_1_1ops_1_1_encode_base64_1aa8371d913db405206464bd4233fa039d)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input)` ||\n| [EncodeBase64](#classtensorflow_1_1ops_1_1_encode_base64_1ae7ca70eace547ac3fb404fd8d983a551)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, const `[EncodeBase64::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/encode-base64/attrs#structtensorflow_1_1ops_1_1_encode_base64_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_encode_base64_1ac88d3a2d0a09fdcf5c1e0e6099a9f436) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_encode_base64_1a1232737d3ebffc26955c0a6880d67cbe) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_encode_base64_1aa8ffb94009c50322dcd63f4cfdcc1cbd)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_encode_base64_1aa42e45f58ca5cbd43c3f5f4d231fba66)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_encode_base64_1ae324f09566207fb6e063b62fd9f05085)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| [Pad](#classtensorflow_1_1ops_1_1_encode_base64_1ab5b29f0638a3ab4764ba81d707ef89da)`(bool x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/encode-base64/attrs#structtensorflow_1_1ops_1_1_encode_base64_1_1_attrs) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::EncodeBase64::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/encode-base64/attrs) | Optional attribute setters for [EncodeBase64](/versions/r2.1/api_docs/cc/class/tensorflow/ops/encode-base64#classtensorflow_1_1ops_1_1_encode_base64). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### EncodeBase64\n\n```gdscript\n EncodeBase64(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input\n)\n``` \n\n### EncodeBase64\n\n```gdscript\n EncodeBase64(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n const EncodeBase64::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Pad\n\n```text\nAttrs Pad(\n bool x\n)\n```"]]