File tree Expand file tree Collapse file tree 1 file changed +22
-17
lines changed
paddle/fluid/inference/tests/api Expand file tree Collapse file tree 1 file changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -214,23 +214,28 @@ TEST(Analyzer_Transformer, fuse_statis) {
214
214
}
215
215
216
216
// Compare result of NativeConfig and AnalysisConfig
217
- void compare (bool use_mkldnn = false ) {
218
- AnalysisConfig cfg;
219
- SetConfig (&cfg);
220
- if (use_mkldnn) {
221
- cfg.EnableMKLDNN ();
222
- }
223
-
224
- std::vector<std::vector<PaddleTensor>> input_slots_all;
225
- SetInput (&input_slots_all);
226
- CompareNativeAndAnalysis (
227
- reinterpret_cast <const PaddlePredictor::Config *>(&cfg), input_slots_all);
228
- }
229
-
230
- TEST (Analyzer_Transformer, compare) { compare (); }
231
- #ifdef PADDLE_WITH_MKLDNN
232
- TEST (Analyzer_Transformer, compare_mkldnn) { compare (true /* use_mkldnn */ ); }
233
- #endif
217
+ // void compare(bool use_mkldnn = false) {
218
+ // AnalysisConfig cfg;
219
+ // SetConfig(&cfg);
220
+ // if (use_mkldnn) {
221
+ // cfg.EnableMKLDNN();
222
+ // }
223
+ //
224
+ // std::vector<std::vector<PaddleTensor>> input_slots_all;
225
+ // SetInput(&input_slots_all);
226
+ // CompareNativeAndAnalysis(
227
+ // reinterpret_cast<const PaddlePredictor::Config *>(&cfg),
228
+ // input_slots_all);
229
+ // }
230
+
231
+ // TODO(yihuaxu):
232
+ // Disable compare and compare_mkldnn temporary, see
233
+ // https://github.com/paddlePaddle/Paddle/issues/16316 for details.
234
+ // TEST(Analyzer_Transformer, compare) { compare(); }
235
+ // #ifdef PADDLE_WITH_MKLDNN
236
+ // TEST(Analyzer_Transformer, compare_mkldnn) { compare(true /* use_mkldnn */);
237
+ // }
238
+ // #endif
234
239
235
240
} // namespace inference
236
241
} // namespace paddle
You can’t perform that action at this time.
0 commit comments