Created by: wangchaochaohu
fill_constant OP 报错信息添加 1 .添加了对输入Tensor的数据类型的检查 代码:
import paddle.fluid as fluid
import numpy as np
fluid.layers.fill_constant(shape=[1], value=5, dtype='uint8')
报错信息:
TypeError: The create data type in fill_constant must be float16 or float32or float64 or int32 or int64 but received uint8.