提交 57dc3c19 编写于 作者: Y Yihua Xu 提交者: Tao Luo

Disable compare for Issue#16316 (#16466)

* Disable compare for accuracy issue.

test=develop

* Add todo comments to show more information.

test=develop
上级 c7c6eeb4
...@@ -214,23 +214,28 @@ TEST(Analyzer_Transformer, fuse_statis) { ...@@ -214,23 +214,28 @@ TEST(Analyzer_Transformer, fuse_statis) {
} }
// Compare result of NativeConfig and AnalysisConfig // Compare result of NativeConfig and AnalysisConfig
void compare(bool use_mkldnn = false) { // void compare(bool use_mkldnn = false) {
AnalysisConfig cfg; // AnalysisConfig cfg;
SetConfig(&cfg); // SetConfig(&cfg);
if (use_mkldnn) { // if (use_mkldnn) {
cfg.EnableMKLDNN(); // cfg.EnableMKLDNN();
} // }
//
std::vector<std::vector<PaddleTensor>> input_slots_all; // std::vector<std::vector<PaddleTensor>> input_slots_all;
SetInput(&input_slots_all); // SetInput(&input_slots_all);
CompareNativeAndAnalysis( // CompareNativeAndAnalysis(
reinterpret_cast<const PaddlePredictor::Config *>(&cfg), input_slots_all); // reinterpret_cast<const PaddlePredictor::Config *>(&cfg),
} // input_slots_all);
// }
TEST(Analyzer_Transformer, compare) { compare(); }
#ifdef PADDLE_WITH_MKLDNN // TODO(yihuaxu):
TEST(Analyzer_Transformer, compare_mkldnn) { compare(true /* use_mkldnn */); } // Disable compare and compare_mkldnn temporary, see
#endif // https://github.com/paddlePaddle/Paddle/issues/16316 for details.
// TEST(Analyzer_Transformer, compare) { compare(); }
// #ifdef PADDLE_WITH_MKLDNN
// TEST(Analyzer_Transformer, compare_mkldnn) { compare(true /* use_mkldnn */);
// }
// #endif
} // namespace inference } // namespace inference
} // namespace paddle } // namespace paddle
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册