tensorflow::ops::Empty
#include <array_ops.h>
Создаёт тензор с заданной формой.
Краткое описание
Эта операция создаёт тензор типа shape и формы dtype.
Аргументы:
- scope: Объект Scope
- shape: 1-D. Представляет форму выходного тензора.
Необязательные атрибуты (см. Attrs):
- init: Если True, инициализирует возвращаемый тензор значением по умолчанию для dtype. В противном случае реализация может не инициализировать содержимое тензора.
Возвращает:
| Конструкторы и деструкторы | |
|---|---|
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 | |
output | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Публичные статические функции | |
|---|---|
Init(bool x) | |
| Структуры | |
|---|---|
| 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 )
© 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/empty