fp16模型预测报错
Created by: yaobh
您好, 使用旧版代码fine-tuning的fp16的模型,c++前向预测的时候会出Core,报如下的错,请问这是什么问题? 训练模型: ernie:repro分支; paddle:1.7.2版本 c++预测: 代码:repro分支inference/gpu/inference.cc paddle版本:1.8.0_release
InvalidArgumentError: The DataType of multihead_matmul Op's duplicable Variable BiasQK must be consistent. The current variable type is (::paddle::platform::float16), but the previous variable type is (float). at (Paddle-release-1.8/paddle/fluid/framework/operator.cc:1298)