Spec-Zone.ru › TensorFlow C++

tensorflow::ops::DecodePaddedRaw

#include <parsing_ops.h>

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

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

Аргументы:

  • scope: объект Scope
  • input_bytes: строковый Tensor, который нужно декодировать.
  • fixed_length: Длина в байтах каждого элемента декодированного результата. Должна быть кратна размеру типа выходных данных.

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

  • little_endian: Определяет, находится ли входной input_bytes в порядке байтов от младшего к старшему. Игнорируется для значений 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
Operation
output
::tensorflow::Output
Открытые функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Открытые статические функции
LittleEndian(bool x)
Attrs
Структуры
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
)

© 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-padded-raw

Spec-Zone.ru

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