未验证 提交 0ffaf049 编写于 作者: W Wangzheee 提交者: GitHub

fix_ernie_unitest (#43283)

上级 88216f63
......@@ -69,6 +69,10 @@ std::shared_ptr<Predictor> InitPredictor() {
opt_input_shape);
// erinie varlen must be used with oss
config.EnableVarseqlen();
paddle_infer::experimental::InternalUtils::SetTransformerPosid(&config,
input_name2);
paddle_infer::experimental::InternalUtils::SetTransformerMaskid(&config,
input_name3);
return CreatePredictor(config);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册