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

[TARGET] ONNX codegen #5052

Merged
merged 34 commits into from
Jul 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b6e6cf7
Relay to ONNX converter
maheshambule Mar 12, 2020
8319b76
Relay to ONNX op test cases
maheshambule Mar 12, 2020
72f6b2b
Relay to ONNX end to end model test cases
maheshambule Mar 12, 2020
1fda66a
Add test cases to jenkins
maheshambule Mar 12, 2020
52b9bd1
CI CD fixes
maheshambule Mar 12, 2020
0730fb0
ONNX codegen
maheshambule May 14, 2020
820d9f0
ONNX codegen
maheshambule May 14, 2020
1c03528
ONNX codegen
maheshambule May 14, 2020
26d1d87
onnx testcases
maheshambule May 14, 2020
7849ec6
ONNX codegen
maheshambule May 14, 2020
44d417e
test onnx
maheshambule May 14, 2020
406807f
ONNX codegen
maheshambule May 19, 2020
ae6b7d1
shape calculation
maheshambule May 20, 2020
0370f41
move onnx codegen to contrib/target
maheshambule May 22, 2020
427815a
review comments
maheshambule May 22, 2020
f595547
ONNX target use visitor
maheshambule Jun 6, 2020
6daf93f
onnx fixes
maheshambule Jun 6, 2020
00060d6
lint fixes
maheshambule Jun 6, 2020
1dd1c8b
doc string changes
maheshambule Jun 6, 2020
2432a31
Merge branch 'master' of https://github.com/apache/incubator-tvm into…
maheshambule Jun 10, 2020
ec9a395
review comments
maheshambule Jun 11, 2020
f37b551
review comment fixes
maheshambule Jun 12, 2020
5903439
merge master
maheshambule Jun 12, 2020
e76fb51
review comment
maheshambule Jun 12, 2020
89acc7d
pytest skip
maheshambule Jun 12, 2020
8d1df2c
rename type to node type
maheshambule Jun 23, 2020
8d6ed20
Merge branch 'master' of https://github.com/apache/incubator-tvm into…
maheshambule Jun 29, 2020
43a4787
Merge branch 'master' of https://github.com/apache/incubator-tvm into…
maheshambule Jul 11, 2020
2c01126
test
maheshambule Jul 12, 2020
4012c7a
Merge branch 'relay_to_onnx1' of https://github.com/maheshambule/tvm …
maheshambule Jul 12, 2020
840cf7e
Fix for constantshpae, add exp, fix for metadatamodule
maheshambule Jul 12, 2020
535e5d7
Merge branch 'master' into relay_to_onnx
maheshambule Jul 12, 2020
028e0cf
Fix cpplint
maheshambule Jul 12, 2020
04b038e
change error tol values
maheshambule Jul 13, 2020
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
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ tvm_option(USE_CPP_RPC "Build CPP RPC" OFF)
tvm_option(USE_TFLITE "Build with tflite support" OFF)
tvm_option(USE_TENSORFLOW_PATH "TensorFlow root path when use TFLite" none)
tvm_option(USE_COREML "Build with coreml support" OFF)
tvm_option(USE_TARGET_ONNX "Build with ONNX Codegen support" OFF)

if(USE_CPP_RPC AND UNIX)
message(FATAL_ERROR "USE_CPP_RPC is only supported with WIN32. Use the Makefile for non-Windows.")
Expand Down Expand Up @@ -328,6 +329,7 @@ include(cmake/modules/contrib/HybridDump.cmake)
include(cmake/modules/contrib/TFLite.cmake)
include(cmake/modules/contrib/TF_TVMDSOOP.cmake)
include(cmake/modules/contrib/CoreML.cmake)
include(cmake/modules/contrib/ONNX.cmake)

include(CheckCXXCompilerFlag)
if(NOT MSVC)
Expand Down
4 changes: 4 additions & 0 deletions cmake/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,9 @@ set(USE_FALLBACK_STL_MAP OFF)
set(USE_HEXAGON_DEVICE OFF)
set(USE_HEXAGON_SDK /path/to/sdk)

# Whether to use ONNX codegen
set(USE_TARGET_ONNX OFF)

# Whether to compile the standalone C runtime.
set(USE_STANDALONE_CRT ON)

22 changes: 22 additions & 0 deletions cmake/modules/contrib/ONNX.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

if(USE_TARGET_ONNX)
message(STATUS "Build with contrib.codegen_onnx")
file(GLOB ONNX_CONTRIB_SRC src/runtime/contrib/onnx/onnx_module.cc)
list(APPEND RUNTIME_SRCS ${ONNX_CONTRIB_SRC})
endif(USE_TARGET_ONNX)
2 changes: 0 additions & 2 deletions python/tvm/contrib/target/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""Codegen and runtime APIs for targets.
maheshambule marked this conversation as resolved.
Show resolved Hide resolved
"""
Loading