tf.raw_ops.TensorListReserve
List of the given size with empty elements.
tf.raw_ops.TensorListReserve( element_shape, num_elements, element_dtype, name=None )
element_shape: the shape of the future elements of the list num_elements: the number of elements to reserve handle: the output list element_dtype: the desired type of elements in the list.
Args | |
---|---|
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 name for the operation (optional). |
Returns | |
---|---|
A Tensor of type variant . |
© 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.4/api_docs/python/tf/raw_ops/TensorListReserve