tf.raw_ops.TensorListReserve
Список заданного размера с пустыми элементами.
tf.raw_ops.TensorListReserve(
element_shape, num_elements, element_dtype, name=None
)
element_shape: форма будущих элементов списка num_elements: количество резервируемых элементов handle: выходной список element_dtype: требуемый тип элементов списка.
| Аргументы | |
|---|---|
element_shape | A Tensor. Must be one of the following types: int32, int64. |
num_elements | A Tensor of type int32. |
element_dtype | A tf.DType. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
A Tensor of type variant. |
© 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/python/tf/raw_ops/TensorListReserve