Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update C onnx importer #3960

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion projects/onnx_c_importer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FetchContent_Declare(
onnx
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/onnx/onnx.git
GIT_TAG v1.15.0
GIT_TAG v1.16.1
GIT_SHALLOW ON
GIT_PROGRESS ON
)
Expand All @@ -25,6 +25,16 @@ add_llvm_executable(
OnnxImporter.cpp
)

target_compile_definitions(torch-mlir-import-onnx PRIVATE ONNX_NO_EXCEPTIONS)

# Supress compiler warnings from onnx headers
check_cxx_compiler_flag(-Wno-c++98-compat-extra-semi
CXX_SUPPORTS_NO_CXX98_COMPAT_EXTRA_SEMI_FLAG)
if (CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG)
target_compile_options(torch-mlir-import-onnx PRIVATE
"-Wno-c++98-compat-extra-semi")
endif()

target_link_libraries(
torch-mlir-import-onnx
LLVMSupport
Expand Down
Loading
Loading