tf.raw_ops.TensorListSetItem
Устанавливает элемент в списке по указанному индексу.
tf.raw_ops.TensorListSetItem(
input_handle, index, item, resize_if_index_out_of_bounds=False, name=None
)
input_handle: указатель на список; index: позиция в списке, куда будет помещен элемент; item: элемент, который нужно поместить; output_handle: новый список с элементом на правильной позиции.
| Аргументы | |
|---|---|
input_handle | A Tensor типа variant. |
index | A Tensor типа int32. |
item | A Tensor. |
resize_if_index_out_of_bounds | Необязательный bool. По умолчанию False. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
A Tensor типа 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/TensorListSetItem