tf.raw_ops.TensorListStack
Объединяет все тензоры в списке в один тензор.
tf.raw_ops.TensorListStack(
input_handle, element_shape, element_dtype, num_elements=-1, name=None
)
Требуется, чтобы все тензоры имели одинаковую форму.
input_handle: входной тензор-список; tensor: собранный результат; num_elements: необязательный параметр. Если значение не равно -1, задает количество элементов в списке.
| Аргументы | |
|---|---|
input_handle | A Tensor of type variant. |
element_shape | A Tensor of type int32. |
element_dtype | A tf.DType. |
num_elements | An optional int. Defaults to -1. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
A Tensor of type element_dtype. |
© 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/TensorListStack