Created by: wangchaochaohu
API fluid.layers.array_length报错信息增强 [C++端 + Python端]
python 端
array length 类型检查
def array_length(array):
对输入是否是Variable 进行检查
C++端
判断时候有输入X和输出Out Input X
NotFoundError: No Input(X) found for LDArrayLength operator.
[Hint: Expected false == true, but received false:0 != true:1.] at (/workspace/card_requrement/Paddle/paddle/fluid/operators/lod_array_length_op.cc:63)
[operator < lod_array_length > error]
Output Out
NotFoundError: No Output(Out) found for LoDArrayLength operator.
[Hint: Expected false == true, but received false:0 != true:1.] at (/workspace/card_requrement/Paddle/paddle/fluid/operators/lod_array_length_op.cc:65)
[operator < lod_array_length > error]