Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
dòng chảy căng:: ôi:: Giải mãNguyên
#include <parsing_ops.h>
Diễn giải lại các byte của chuỗi dưới dạng vectơ số.
Bản tóm tắt
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- byte: Tất cả các phần tử phải có cùng độ dài.
Thuộc tính tùy chọn (xem Attrs
):
- little_endian:
bytes
đầu vào có theo thứ tự little-endian hay không. Bỏ qua các giá trị out_type
được lưu trữ trong một byte đơn như uint8
.
Trả về:
-
Output
: Một Tensor có nhiều hơn một chiều so với bytes
đầu vào. Thứ nguyên được thêm vào sẽ có kích thước bằng độ dài của các phần tử bytes
chia cho số byte để biểu thị out_type
.
Thuộc tính công khai
Chức năng công cộng
nút
::tensorflow::Node * node() const
operator::tensorflow::Input() const
toán tử::tenorflow::Đầu ra
operator::tensorflow::Output() const
Các hàm tĩnh công khai
LittleEndian
Attrs LittleEndian(
bool x
)
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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```"]]