tensorflow::ops::DecodeRaw
#include <parsing_ops.h>
Переинтерпретирует байты строки как вектор чисел.
Summary
Arguments:
- scope: An object Scope
- bytes: Все элементы должны иметь одинаковую длину.
Optional attributes (see Attrs):
- little_endian: Указывает, хранятся ли входные
bytesв порядке little-endian. Игнорируется дляout_typeзначений, которые хранятся в одном байте, например,uint8.
Returns:
-
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) |
| Public attributes | |
|---|---|
operation | |
output | |
| Public functions | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Public static functions | |
|---|---|
LittleEndian(bool x) | |
| Structs | |
|---|---|
| tensorflow::ops::DecodeRaw::Attrs | Дополнительные параметры для настройки DecodeRaw. |
Public attributes
operation
Operation operation
output
::tensorflow::Output output
Public functions
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
Public static functions
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/r2.3/api_docs/cc/class/tensorflow/ops/decode-raw