جریان تنسور:: عملیات:: DecodeRaw
#include <parsing_ops.h>
بایت های یک رشته را مجدداً به عنوان بردار اعداد تفسیر کنید.
خلاصه
استدلال ها:
ویژگی های اختیاری (به Attrs
مراجعه کنید):
- little_endian: اینکه آیا
bytes
ورودی به ترتیب کمی اند. برای مقادیرout_type
که در یک بایت مانندuint8
ذخیره می شوند نادیده گرفته می شود.
برمیگرداند:
-
Output
: یک تانسور با یک بعد بیشتر ازbytes
ورودی . بعد اضافه شده دارای اندازه ای برابر با طول عناصرbytes
تقسیم بر تعداد بایت هایی برای نشان دادنout_type
خواهد بود.
سازندگان و ویرانگرها | |
---|---|
DecodeRaw (const :: tensorflow::Scope & scope, :: tensorflow::Input bytes, DataType out_type) | |
DecodeRaw (const :: tensorflow::Scope & scope, :: tensorflow::Input bytes, DataType out_type, const DecodeRaw::Attrs & attrs) |
صفات عمومی | |
---|---|
operation | |
output |
توابع عمومی | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
توابع استاتیک عمومی | |
---|---|
LittleEndian (bool x) |
سازه ها | |
---|---|
tensorflow:: ops:: DecodeRaw:: Attrs | تنظیم کننده های ویژگی اختیاری برای DecodeRaw . |
صفات عمومی
عملیات
Operation operation
خروجی
::tensorflow::Output output
توابع عمومی
DecodeRaw
DecodeRaw( const ::tensorflow::Scope & scope, ::tensorflow::Input bytes, DataType out_type )
DecodeRaw
DecodeRaw( const ::tensorflow::Scope & scope, ::tensorflow::Input bytes, DataType out_type, const DecodeRaw::Attrs & attrs )
گره
::tensorflow::Node * node() const
عملگر::tensorflow::ورودی
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const
توابع استاتیک عمومی
لیتل اندیان
Attrs LittleEndian( bool x )
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی."],[],[],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```"]]