diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index 4bd9bfb670fc1a3caf1374b710d5feb27bfbc062..9f4c4fd15effee448cfbde2d2700f3a179eb8c26 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -231,7 +231,7 @@ set WITH_MKL=ON set WITH_GPU=ON set WITH_AVX=ON set MSVC_STATIC_CRT=OFF -set ON_INFER=OFF +set ON_INFER=ON set WITH_TENSORRT=ON set WITH_INFERENCE_API_TEST=OFF if not defined CUDA_ARCH_NAME set CUDA_ARCH_NAME=Auto @@ -248,7 +248,7 @@ set WITH_MKL=OFF set WITH_GPU=OFF set WITH_AVX=OFF set MSVC_STATIC_CRT=ON -set ON_INFER=OFF +set ON_INFER=ON if not defined CUDA_ARCH_NAME set CUDA_ARCH_NAME=Auto call :cmake || goto cmake_error @@ -281,7 +281,7 @@ goto:success rem ------Build windows avx whl package------ :CASE_build_avx_whl set WITH_AVX=ON -set ON_INFER=OFF +set ON_INFER=ON if not defined CUDA_ARCH_NAME set CUDA_ARCH_NAME=All call :cmake || goto cmake_error @@ -292,7 +292,7 @@ goto:success rem ------Build windows no-avx whl package------ :CASE_build_no_avx_whl set WITH_AVX=OFF -set ON_INFER=OFF +set ON_INFER=ON if not defined CUDA_ARCH_NAME set CUDA_ARCH_NAME=All call :cmake || goto cmake_error