Skip to content

Commit df826de

Browse files
li099wanghaoshuang
authored andcommitted
revise tensor array to tensor op (#14368)
test=develop
1 parent 6c32945 commit df826de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/fluid/layers/tensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,11 @@ def tensor_array_to_tensor(input, axis=1, name=None):
235235
236236
output, output_index = fluid.layers.tensor_array_to_tensor(input=tensor_array)
237237
"""
238-
helper = LayerHelper('tensor_array_concat', **locals())
238+
helper = LayerHelper('tensor_array_to_tensor', **locals())
239239
out = helper.create_variable_for_type_inference(dtype=helper.input_dtype())
240240
out_index = helper.create_variable_for_type_inference(dtype="int32")
241241
helper.append_op(
242-
type='tensor_array_concat',
242+
type='tensor_array_to_tensor',
243243
inputs={'X': input},
244244
outputs={'Out': [out],
245245
'OutIndex': [out_index]},

0 commit comments

Comments
 (0)