Skip to content

Commit df75a9d

Browse files
cyyeverpytorchmergebot
authored andcommitted
Remove Caffe2/onnx (pytorch#127991)
Remove Caffe2/onnx since it is not used. Other tiny fixes are also applied. Pull Request resolved: pytorch#127991 Approved by: https://github.com/ezyang
1 parent d48c25c commit df75a9d

File tree

10 files changed

+0
-288
lines changed

10 files changed

+0
-288
lines changed

caffe2/BUILD_MODE.bzl

-23
This file was deleted.

caffe2/CMakeLists.txt

-7
Original file line numberDiff line numberDiff line change
@@ -1930,7 +1930,6 @@ if(BUILD_PYTHON)
19301930
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
19311931
# Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80947 in EmbeddingBag.cpp
19321932
set_source_files_properties(../aten/src/ATen/native/EmbeddingBag.cpp PROPERTIES COMPILE_FLAGS -Wno-attributes)
1933-
set_source_files_properties(${TORCH_SRC_DIR}/../caffe2/operators/box_with_nms_limit_op.cc PROPERTIES COMPILE_FLAGS -Wno-attributes)
19341933
endif()
19351934

19361935
set(build_files)
@@ -1950,10 +1949,4 @@ if(BUILD_PYTHON)
19501949
# Pick up static python files
19511950
install(DIRECTORY ${CMAKE_BINARY_DIR}/caffe2 DESTINATION ${PYTHON_LIB_REL_PATH}
19521951
FILES_MATCHING PATTERN "*.py")
1953-
# Caffe proto files
1954-
install(DIRECTORY ${CMAKE_BINARY_DIR}/caffe DESTINATION ${PYTHON_LIB_REL_PATH}
1955-
FILES_MATCHING PATTERN "*.py")
1956-
# Caffe2 proto files
1957-
install(DIRECTORY ${CMAKE_BINARY_DIR}/caffe2 DESTINATION ${PYTHON_LIB_REL_PATH}
1958-
FILES_MATCHING PATTERN "*.py")
19591952
endif()

caffe2/__init__.py

-5
This file was deleted.

caffe2/onnx/torch_ops/CMakeLists.txt

-5
This file was deleted.

caffe2/onnx/torch_ops/constants.h

-7
This file was deleted.

caffe2/onnx/torch_ops/defs.cc

-168
This file was deleted.

caffe2/onnx/torch_ops/operator_sets.h

-46
This file was deleted.

caffe2/onnx/torch_ops/schema.cc

-17
This file was deleted.

caffe2/onnx/torch_ops/schema.h

-8
This file was deleted.

cmake/Dependencies.cmake

-2
Original file line numberDiff line numberDiff line change
@@ -1282,8 +1282,6 @@ if(CAFFE2_CMAKE_BUILDING_WITH_MAIN_REPO AND NOT INTERN_DISABLE_ONNX)
12821282
add_definitions(-DONNX_ML=1)
12831283
endif()
12841284
add_definitions(-DONNXIFI_ENABLE_EXT=1)
1285-
# Add op schemas in "ai.onnx.pytorch" domain
1286-
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/../caffe2/onnx/torch_ops")
12871285
if(NOT USE_SYSTEM_ONNX)
12881286
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../third_party/onnx EXCLUDE_FROM_ALL)
12891287
if(NOT MSVC)

0 commit comments

Comments
 (0)