Skip to content

Commit 045589f

Browse files
committed
fix compiler error in high-level api
1 parent 79d555b commit 045589f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

paddle/contrib/inference/test_paddle_inference_api_impl.cc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ void MainWord2Vec(bool use_gpu) {
109109

110110
void MainImageClassification(bool use_gpu) {
111111
int batch_size = 2;
112-
bool use_mkldnn = false;
113112
bool repeat = false;
114113
NativeConfig config = GetConfig();
115114
config.use_gpu = use_gpu;
@@ -134,12 +133,8 @@ void MainImageClassification(bool use_gpu) {
134133
std::vector<framework::LoDTensor*> cpu_fetchs1;
135134
cpu_fetchs1.push_back(&output1);
136135

137-
TestInference<platform::CPUPlace, false, true>(config.model_dir,
138-
cpu_feeds,
139-
cpu_fetchs1,
140-
repeat,
141-
is_combined,
142-
use_mkldnn);
136+
TestInference<platform::CPUPlace, false, true>(
137+
config.model_dir, cpu_feeds, cpu_fetchs1, repeat, is_combined);
143138

144139
auto predictor = CreatePaddlePredictor(config);
145140
std::vector<PaddleTensor> paddle_tensor_feeds;

0 commit comments

Comments
 (0)