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