tf.raw_ops.ImmutableConst
Возвращает неизменяемый тензор из области памяти.
tf.raw_ops.ImmutableConst(
dtype, shape, memory_region_name, name=None
)
Текущая реализация отображает тензор из файла.
| Аргументы | |
|---|---|
dtype | A tf.DType. Тип возвращаемого тензора. |
shape | A tf.TensorShape или список ints. Форма возвращаемого тензора. |
memory_region_name | A string. Имя области только для чтения в памяти, используемой тензором, см. NewReadOnlyMemoryRegionFromFile в tensorflow::Env. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
A Tensor типа dtype. |
© 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/python/tf/raw_ops/ImmutableConst