Spec-Zone.ru › TensorFlow C++ 2.4

tensorflow::ops::Empty

#include <array_ops.h>

Создаёт тензор заданной формы.

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

Данная операция создаёт тензор типа shape и dtype.

Аргументы:

  • scope: Объект Scope
  • shape: 1-мерный. Представляет форму выходного тензора.

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

  • init: Если True, инициализирует возвращаемый тензор значением по умолчанию для типа dtype. В противном случае реализация свободна не инициализировать содержимое тензора.

Возвращает:

  • Output: A Tensor типа T.
Конструкторы и деструкторы
Empty(const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype)
Empty(const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype, const Empty::Attrs & attrs)
Публичные атрибуты
operation
Operation
output
::tensorflow::Output
Публичные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Публичные статические функции
Init(bool x)
Attrs
Структуры
tensorflow::ops::Empty::Attrs

Необязательные настройки атрибутов для Empty.

Публичные атрибуты

operation

Operation operation

output

::tensorflow::Output output

Публичные функции

Empty

 Empty(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype
)

Empty

 Empty(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype,
  const Empty::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Публичные статические функции

Init

Attrs Init(
  bool x
)

© 2020 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.4/api_docs/cc/class/tensorflow/ops/empty

Spec-Zone.ru

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