Spec-Zone.ru › TensorFlow C++

tensorflow::ops::DecodeRaw

#include <parsing_ops.h>

Интерпретирует байты строки как вектор чисел.

Краткое описание

Аргументы:

  • scope: объект Scope
  • bytes: все элементы All должны иметь одинаковую длину.

Необязательные атрибуты (см. Attrs):

  • little_endian: Определяет, представлены ли входные данные bytes в порядке от младшего байта к старшему. Игнорируется для значений out_type, хранящихся в одном байте, например uint8.

Возвращает:

  • Output: объект 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
Operation
output
::tensorflow::Output
Общедоступные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Общедоступные статические функции
LittleEndian(bool x)
Attrs
Структуры
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/api_docs/cc/class/tensorflow/ops/decode-raw

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API