Created by: chenwhql
PR types
Others
PR changes
Others
Describe
poliish tensor.set() error message.
code example:
error_array = ['1', '2']
tensor.set(error_array, place)
original:
----------------------
Error Message Summary:
----------------------
InvalidArgumentError: Incompatible data type: tensor.set() supports bool, float16, float32, float64, int8, int16, int32, int64 and uint8, uint16, but got <U1! at (/work/paddle/paddle/fluid/pybind/tensor_py.h:254)
new:
----------------------
Error Message Summary:
----------------------
InvalidArgumentError: Input object type error or incompatible array data type. tensor.set() supports array with bool, float16, float32, float64, int8, int16, int32, int64, uint8 or uint16, please check your input or input array data type. at (/work/paddle/paddle/fluid/pybind/tensor_py.h:255)