tensorflow::ops::DecodeRaw
#include <parsing_ops.h>
Переинтерпретировать байты строки как вектор чисел.
Краткое описание
Аргументы:
- scope: Объект Scope
- bytes: Все элементы должны иметь одинаковую длину.
Необязательные атрибуты (см. Attrs):
- little_endian: Являются ли входные данные
bytesв формате little-endian. Игнорируется дляout_typeзначений, которые хранятся в одном байте, таких какuint8.
Возвращаемое значение:
-
Output: A Tensor с одним дополнительным измерением по сравнению с входными данными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 operation
output
::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 )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Общественные статические функции
LittleEndian
Attrs LittleEndian( bool x )
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/cc/class/tensorflow/ops/decode-raw