tensorflow::ops::EnsureShape
#include <array_ops.h>
Обеспечивает соответствие формы тензора ожидаемой форме.
Краткое описание
Вызывает ошибку, если форма входного тензора не соответствует заданной форме. В противном случае возвращает входной тензор.
Аргументы:
- scope: Объект Scope
- input: Тензор, форма которого должна быть проверена.
- shape: Ожидаемая (возможно, частично заданная) форма входного тензора.
Возвращает:
-
Output: Тензор с той же формой и содержимым, что и входной тензор или значение.
| Конструкторы и деструкторы | |
|---|---|
EnsureShape(const ::tensorflow::Scope & scope, ::tensorflow::Input input, PartialTensorShape shape) |
| Общедоступные атрибуты | |
|---|---|
operation | |
output | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Общедоступные атрибуты
operation
Operation operation
output
::tensorflow::Output output
Общедоступные функции
EnsureShape
EnsureShape( const ::tensorflow::Scope & scope, ::tensorflow::Input input, PartialTensorShape shape )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 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/ensure-shape