Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
aliran tensor:: operasi:: Dekode Mentah
#include <parsing_ops.h>
Menafsirkan ulang byte string sebagai vektor angka.
Ringkasan
Argumen:
- ruang lingkup: Objek Lingkup
- bytes: Semua elemen harus memiliki panjang yang sama.
Atribut opsional (lihat Attrs
):
- little_endian: Apakah
bytes
input berada dalam urutan little-endian. Diabaikan untuk nilai out_type
yang disimpan dalam satu byte seperti uint8
.
Pengembalian:
-
Output
: Tensor dengan satu dimensi lebih banyak daripada bytes
masukan. Dimensi yang ditambahkan akan memiliki ukuran yang sama dengan panjang elemen bytes
dibagi dengan jumlah byte yang mewakili out_type
.
Atribut publik
Fungsi publik
simpul
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
Endian Kecil
Attrs LittleEndian(
bool x
)
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::DecodeRaw Class Reference\n\ntensorflow::ops::DecodeRaw\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- bytes: [All](/versions/r1.15/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all) the elements must have the same length.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/decode-raw/attrs#structtensorflow_1_1ops_1_1_decode_raw_1_1_attrs)):\n\n- little_endian: Whether the input `bytes` are 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| [DecodeRaw](#classtensorflow_1_1ops_1_1_decode_raw_1a009ee569ceb10dfe18f4cbc635c6b0f8)`(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)` bytes, DataType out_type)` ||\n| [DecodeRaw](#classtensorflow_1_1ops_1_1_decode_raw_1a2755ef7795b3379d5129b8a878bca31c)`(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)` bytes, DataType out_type, const `[DecodeRaw::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/decode-raw/attrs#structtensorflow_1_1ops_1_1_decode_raw_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_decode_raw_1ab6e42efe2dca3f3d827475cf62437053) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_decode_raw_1a23cf767ae870fefb89c30052498a0df6) | `::`[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_raw_1a7a6eccc4ac856a21aff11f122297916d)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_decode_raw_1a0eefc98977cc8232c00bc060f54ee941)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_decode_raw_1a6d67d85b527ffa9d1d9598bc5388f3d2)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|\n| [LittleEndian](#classtensorflow_1_1ops_1_1_decode_raw_1a07817a63502629cb34ff94dadaaaceac)`(bool x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/decode-raw/attrs#structtensorflow_1_1ops_1_1_decode_raw_1_1_attrs) |\n\n| ### Structs ||\n|---------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::DecodeRaw::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/decode-raw/attrs) | Optional attribute setters for [DecodeRaw](/versions/r1.15/api_docs/cc/class/tensorflow/ops/decode-raw#classtensorflow_1_1ops_1_1_decode_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### DecodeRaw\n\n```gdscript\n DecodeRaw(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input bytes,\n DataType out_type\n)\n``` \n\n### DecodeRaw\n\n```gdscript\n DecodeRaw(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input bytes,\n DataType out_type,\n const DecodeRaw::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```"]]