提交 d8181ab9 编写于 作者: H Haihao Shen

Skip s8u8 when force fp32

上级 1d9d8ed6
......@@ -785,7 +785,7 @@ class ConvMKLDNNOpKernel : public paddle::framework::OpKernel<T> {
pipeline.push_back(*conv_p);
stream(stream::kind::eager).submit(pipeline).wait();
if(need_s8_to_u8){
if(need_s8_to_u8 && !force_fp32_output){
output->mutable_data<uint8_t>(ctx.GetPlace());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册