Created by: hong19860320
zeros OP 报错信息添加 1.添加了对输入Tensor的数据类型的检查 代码:
import paddle.fluid as fluid
fluid.layers.zeros(shape=[4], dtype="int8")
报错信息:
TypeError: The create data type in zeros must be one of bool, float16, float32, float64, int32 or int64, but received int8.