Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: Dekodowanie surowego
#include <parsing_ops.h>
Reinterpretuj bajty ciągu jako wektor liczb.
Streszczenie
Argumenty:
- zakres: Obiekt Scope
- bajty: Wszystkie elementy muszą mieć tę samą długość.
Opcjonalne atrybuty (patrz Attrs
):
- Little_endian: Określa, czy
bytes
wejściowe są w kolejności Little-Endian. Ignorowane w przypadku wartości out_type
przechowywanych w jednym bajcie, np. uint8
.
Zwroty:
-
Output
: Tensor z jednym wymiarem więcej niż bytes
wejściowe. Dodany wymiar będzie miał rozmiar równy długości elementów bytes
podzielonej przez liczbę bajtów reprezentujących out_type
.
Atrybuty publiczne
Funkcje publiczne
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const
Publiczne funkcje statyczne
LittleEndian
Attrs LittleEndian(
bool x
)
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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```"]]