File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -598,7 +598,7 @@ if(INTERN_BUILD_MOBILE AND NOT BUILD_CAFFE2_MOBILE)
598
598
set (BUILD_PYTHON OFF )
599
599
set (BUILD_CAFFE2_OPS OFF )
600
600
set (USE_DISTRIBUTED OFF )
601
- set (NO_API ON )
601
+ set (NO_API OFF )
602
602
set (USE_FBGEMM OFF )
603
603
set (USE_QNNPACK OFF )
604
604
set (INTERN_DISABLE_ONNX ON )
Original file line number Diff line number Diff line change @@ -1080,11 +1080,11 @@ if(BUILD_LITE_INTERPRETER AND SELECTED_OP_LIST)
1080
1080
endif ()
1081
1081
1082
1082
if (NOT INTERN_BUILD_MOBILE OR NOT BUILD_CAFFE2_MOBILE)
1083
- # if(NOT NO_API)
1083
+ if (NOT NO_API)
1084
1084
target_include_directories (torch_cpu PRIVATE
1085
1085
${TORCH_SRC_DIR} /csrc/api
1086
1086
${TORCH_SRC_DIR} /csrc/api/include )
1087
- # endif()
1087
+ endif ()
1088
1088
1089
1089
if (BUILD_SPLIT_CUDA AND MSVC )
1090
1090
# -INCLUDE is used to ensure torch_cuda_cpp/cu are linked against in a project that relies on them.
You can’t perform that action at this time.
0 commit comments