From b95f2ff8fe06dcfe0143c05c055c1fa199079f8d Mon Sep 17 00:00:00 2001 From: nhzlx Date: Wed, 16 Jan 2019 09:06:26 +0000 Subject: [PATCH] fix win build bug test=develop --- paddle/fluid/inference/api/analysis_predictor.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddle/fluid/inference/api/analysis_predictor.cc b/paddle/fluid/inference/api/analysis_predictor.cc index 838016bd766..0988682c6a2 100644 --- a/paddle/fluid/inference/api/analysis_predictor.cc +++ b/paddle/fluid/inference/api/analysis_predictor.cc @@ -45,9 +45,11 @@ namespace paddle { using contrib::AnalysisConfig; using inference::Singleton; +#if PADDLE_WITH_TENSORRT using inference::tensorrt::TRTInt8Calibrator; using inference::tensorrt::TRTCalibratorEngine; using inference::tensorrt::TRTCalibratorEngineManager; +#endif namespace { bool IsPersistable(const framework::VarDesc *var) { -- GitLab