コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テンソルフロー::作戦:: DecodePaddedRaw
#include <parsing_ops.h>
文字列のバイトを数値のベクトルとして再解釈します。
まとめ
引数:
- スコープ:スコープオブジェクト
- input_bytes: デコードされる文字列のテンソル。
- fix_length: デコードされた出力の各要素のバイト単位の長さ。出力タイプのサイズの倍数である必要があります。
オプションの属性 ( Attrs
を参照):
- little_endian: 入力
input_bytes
がリトルエンディアン順であるかどうか。 uint8
などの単一バイトに格納されるout_type
値の場合は無視されます。
戻り値:
-
Output
: 入力bytes
よりも 1 次元多いTensor 。追加される次元のサイズは、 out_type
を表すバイト数で割ったbytes
要素の長さに等しいサイズになります。
パブリック属性
公共機能
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const
パブリック静的関数
リトルエンディアン
Attrs LittleEndian(
bool x
)
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[],[],null,["# tensorflow::ops::DecodePaddedRaw Class Reference\n\ntensorflow::ops::DecodePaddedRaw\n================================\n\n`#include \u003cparsing_ops.h\u003e`\n\nReinterpret the bytes of a string as a vector of numbers.\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input_bytes: [Tensor](/versions/r1.15/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of string to be decoded.\n- fixed_length: Length in bytes for each element of the decoded output. Must be a multiple of the size of the output type.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/decode-padded-raw/attrs#structtensorflow_1_1ops_1_1_decode_padded_raw_1_1_attrs)):\n\n- little_endian: Whether the input `input_bytes` is in little-endian order. Ignored for `out_type` values that are stored in a single byte, like `uint8`\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A [Tensor](/versions/r1.15/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) with one more dimension than the input `bytes`. The added dimension will have size equal to the length of the elements of `bytes` divided by the number of bytes to represent `out_type`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [DecodePaddedRaw](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a94183df5bdaedc1b310e9ea130b6307e)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_bytes, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` fixed_length, DataType out_type)` ||\n| [DecodePaddedRaw](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a66932ca392b545de06ef001a96c15905)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_bytes, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` fixed_length, DataType out_type, const `[DecodePaddedRaw::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/decode-padded-raw/attrs#structtensorflow_1_1ops_1_1_decode_padded_raw_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a29f4a01fa9cc61a7e4df40f8a22ca1bb) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a9c2c7dbf7b377847e5a78d67e0cec014) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a12c5000831086d93709e38a378183832)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a6ec3864a3eefba01c1aa3675343e5fd5)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_decode_padded_raw_1a6bbda4013c115a1adf52cdfda9610dc7)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [LittleEndian](#classtensorflow_1_1ops_1_1_decode_padded_raw_1ab9637f01ff5433b8d35f31d306d7b91c)`(bool x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/decode-padded-raw/attrs#structtensorflow_1_1ops_1_1_decode_padded_raw_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::DecodePaddedRaw::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/decode-padded-raw/attrs) | Optional attribute setters for [DecodePaddedRaw](/versions/r1.15/api_docs/cc/class/tensorflow/ops/decode-padded-raw#classtensorflow_1_1ops_1_1_decode_padded_raw). |\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### DecodePaddedRaw\n\n```gdscript\n DecodePaddedRaw(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input_bytes,\n ::tensorflow::Input fixed_length,\n DataType out_type\n)\n``` \n\n### DecodePaddedRaw\n\n```gdscript\n DecodePaddedRaw(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input_bytes,\n ::tensorflow::Input fixed_length,\n DataType out_type,\n const DecodePaddedRaw::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### LittleEndian\n\n```text\nAttrs LittleEndian(\n bool x\n)\n```"]]