tensorflow::ops::ImmutableConst
#include <array_ops.h>
Возвращает неизменяемый тензор из области памяти.
Краткое описание
Текущая реализация связывает тензор с файлом.
Аргументы:
- scope: Объект Scope
- dtype: Тип возвращаемого тензора.
- shape: Форма возвращаемого тензора.
- memory_region_name: Имя области памяти для чтения, используемой тензором. См. NewReadOnlyMemoryRegionFromFile в tensorflow::Env.
Возвращает:
-
Output: Тензор tensor.
| Конструкторы и деструкторы | |
|---|---|
ImmutableConst(const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, StringPiece memory_region_name) |
| Публичные атрибуты | |
|---|---|
operation | |
tensor | |
| Публичные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Публичные атрибуты
operation
Operation operation
tensor
::tensorflow::Output tensor
Публичные функции
ImmutableConst
ImmutableConst( const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, StringPiece memory_region_name )
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/immutable-const