Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
bc2138d1
Commit
bc2138d1
authored
Aug 23, 2018
by
Artur Wojcik
Committed by
Robert Kimball
Aug 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
onnxifi: initial CMakeLists.txt and libonnx import (#1473)
Signed-off-by:
Artur Wojcik
<
artur.wojcik@intel.com
>
parent
cd318cae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletion
+30
-1
CMakeLists.txt
CMakeLists.txt
+2
-1
CMakeLists.txt
src/ngraph/frontend/CMakeLists.txt
+3
-0
CMakeLists.txt
src/ngraph/frontend/onnxifi/CMakeLists.txt
+25
-0
onnxifi.cpp
src/ngraph/frontend/onnxifi/onnxifi.cpp
+0
-0
No files found.
CMakeLists.txt
View file @
bc2138d1
...
...
@@ -95,6 +95,7 @@ option(NGRAPH_DEX_ONLY "Build CPU DEX without codegen" FALSE)
if
(
NGRAPH_ONNX_IMPORT_ENABLE
)
option
(
NGRAPH_USE_SYSTEM_PROTOBUF
"Use system provided Protobuf shared object"
FALSE
)
option
(
NGRAPH_ONNXIFI_ENABLE
"Enable ONNX Interface for Framework Integration"
TRUE
)
endif
()
#-----------------------------------------------------------------------------------------------
...
...
@@ -224,7 +225,7 @@ endif()
if
(
NGRAPH_ONNX_IMPORT_ENABLE
)
if
(
NOT NGRAPH_USE_SYSTEM_PROTOBUF
)
include
(
cmake/external_protobuf.cmake
)
include
(
cmake/external_protobuf.cmake
)
else
()
find_package
(
Protobuf 2.6.1 REQUIRED
)
endif
()
...
...
src/ngraph/frontend/CMakeLists.txt
View file @
bc2138d1
...
...
@@ -16,6 +16,9 @@
if
(
NGRAPH_ONNX_IMPORT_ENABLE
)
add_subdirectory
(
onnx_import
)
if
(
NGRAPH_ONNXIFI_ENABLE
)
add_subdirectory
(
onnxifi
)
endif
()
endif
()
src/ngraph/frontend/onnxifi/CMakeLists.txt
0 → 100644
View file @
bc2138d1
# ******************************************************************************
# Copyright 2017-2018 Intel Corporation
#
# Licensed 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.
# ******************************************************************************
add_library
(
onnxifi-ngraph SHARED onnxifi.cpp
)
target_link_libraries
(
onnxifi-ngraph PRIVATE ngraph
)
set
(
ONNXIFI_VERSION
${
NGRAPH_VERSION
}
)
set
(
ONNXIFI_ABI_VERSION 1
)
set_target_properties
(
onnxifi-ngraph PROPERTIES VERSION
${
ONNXIFI_VERSION
}
SOVERSION
${
ONNXIFI_ABI_VERSION
}
)
install
(
TARGETS onnxifi-ngraph DESTINATION
${
NGRAPH_INSTALL_LIB
}
)
src/ngraph/frontend/onnxifi/onnxifi.cpp
0 → 100644
View file @
bc2138d1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment