未验证 提交 ea6e565b 编写于 作者: K Kaipeng Deng 提交者: GitHub

Merge pull request #16558 from wojtuss/wojtuss/fix-int8-test-remove-profiling

remove profiling from int8 analyzer test
...@@ -164,26 +164,6 @@ TEST(Analyzer_int8_resnet50, quantization) { ...@@ -164,26 +164,6 @@ TEST(Analyzer_int8_resnet50, quantization) {
input_slots_all); input_slots_all);
} }
TEST(Analyzer_int8_resnet50, profile) {
AnalysisConfig cfg;
SetConfig(&cfg);
std::vector<std::vector<PaddleTensor>> input_slots_all;
SetInput(&input_slots_all);
std::shared_ptr<std::vector<PaddleTensor>> warmup_data =
GetWarmupData(input_slots_all, 100);
cfg.EnableMkldnnQuantizer();
cfg.mkldnn_quantizer_config()->SetWarmupData(warmup_data);
cfg.mkldnn_quantizer_config()->SetWarmupBatchSize(100);
std::vector<PaddleTensor> outputs;
TestPrediction(reinterpret_cast<const PaddlePredictor::Config *>(&cfg),
input_slots_all, &outputs, FLAGS_num_threads);
}
} // namespace analysis } // namespace analysis
} // 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.
先完成此消息的编辑!
想要评论请 注册