From 8dd2a62fa98aeb425594ee2c67fb8babb85a738e Mon Sep 17 00:00:00 2001 From: yiicy Date: Mon, 23 Dec 2019 11:03:30 +0800 Subject: [PATCH] [FIX] model_test and benchmark remove x86 targets (#2600) --- lite/api/benchmark.cc | 1 - lite/api/model_test.cc | 1 - 2 files changed, 2 deletions(-) diff --git a/lite/api/benchmark.cc b/lite/api/benchmark.cc index c137324b57..8eb76d91db 100644 --- a/lite/api/benchmark.cc +++ b/lite/api/benchmark.cc @@ -46,7 +46,6 @@ void OutputOptModel(const std::string& load_model_dir, config.set_model_dir(load_model_dir); std::vector vaild_places = { Place{TARGET(kARM), PRECISION(kFloat)}, - Place{TARGET(kX86), PRECISION(kFloat)}, }; if (FLAGS_is_quantized_model) { vaild_places.insert(vaild_places.begin(), diff --git a/lite/api/model_test.cc b/lite/api/model_test.cc index cf5fa4981a..dc9fac96ee 100644 --- a/lite/api/model_test.cc +++ b/lite/api/model_test.cc @@ -47,7 +47,6 @@ void OutputOptModel(const std::string& load_model_dir, lite_api::CxxConfig config; config.set_model_dir(load_model_dir); config.set_valid_places({ - Place{TARGET(kX86), PRECISION(kFloat)}, Place{TARGET(kARM), PRECISION(kFloat)}, }); auto predictor = lite_api::CreatePaddlePredictor(config); -- GitLab