未验证 提交 597d7efd 编写于 作者: J Jacek Czaja 提交者: GitHub

- Enabled fc of oneDNN for bert test (#41235)

上级 705776ca
...@@ -156,6 +156,8 @@ void profile(bool use_mkldnn = false) { ...@@ -156,6 +156,8 @@ void profile(bool use_mkldnn = false) {
if (use_mkldnn) { if (use_mkldnn) {
config.EnableMKLDNN(); config.EnableMKLDNN();
config.pass_builder()->AppendPass("fc_mkldnn_pass");
config.pass_builder()->AppendPass("fc_act_mkldnn_fuse_pass");
} }
std::vector<std::vector<PaddleTensor>> outputs; std::vector<std::vector<PaddleTensor>> outputs;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册