From df826de76e452cc1baa2188e053f8948b7df9e92 Mon Sep 17 00:00:00 2001 From: li099 Date: Tue, 13 Nov 2018 12:03:27 +0800 Subject: [PATCH] revise tensor array to tensor op (#14368) test=develop --- python/paddle/fluid/layers/tensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/layers/tensor.py b/python/paddle/fluid/layers/tensor.py index 57e5d197b61..ff32c001041 100644 --- a/python/paddle/fluid/layers/tensor.py +++ b/python/paddle/fluid/layers/tensor.py @@ -235,11 +235,11 @@ def tensor_array_to_tensor(input, axis=1, name=None): output, output_index = fluid.layers.tensor_array_to_tensor(input=tensor_array) """ - helper = LayerHelper('tensor_array_concat', **locals()) + helper = LayerHelper('tensor_array_to_tensor', **locals()) out = helper.create_variable_for_type_inference(dtype=helper.input_dtype()) out_index = helper.create_variable_for_type_inference(dtype="int32") helper.append_op( - type='tensor_array_concat', + type='tensor_array_to_tensor', inputs={'X': input}, outputs={'Out': [out], 'OutIndex': [out_index]}, -- GitLab