Created by: wangchaochaohu
API fluid.layers.fill_constant报错信息增强 [C++端]
API fluid.layers.fill_constant报错信息增强 [Python端]
- API接口
def fill_constant(shape, dtype, value, force_cpu=False, out=None):
新增以下检查 (1) 对out 是否是Variable类型进行检查 (2)对shape的dtype进行检查 (3) out 类型应该和dtype相等进行检查
C++端报错
NotFoundError: No Output(Out) found for FillConstant operator.
[Hint: Expected false == true, but received false:0 != true:1.] at (/workspace/card_requrement/Paddle/paddle/fluid/operators/fill_constant_op.cc:25)