Skip to content

Commit b2140c0

Browse files
author
Alexey Suhov
committed
Publishing 2020.1 content
1 parent 949b740 commit b2140c0

File tree

4,000 files changed

+342702
-190214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,000 files changed

+342702
-190214
lines changed

.clang-format

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
BasedOnStyle: Google
2+
IndentWidth: 4
3+
UseTab: Never
4+
---
5+
Language: Cpp
6+
Standard: Cpp11
7+
8+
AccessModifierOffset: -4
9+
AllowAllArgumentsOnNextLine: false
10+
AllowShortFunctionsOnASingleLine: Empty
11+
AllowShortLambdasOnASingleLine: Empty
12+
AlwaysBreakBeforeMultilineStrings: false
13+
ColumnLimit: 120
14+
DerivePointerAlignment: false
15+
FixNamespaceComments: true
16+
IndentCaseLabels: false
17+
SpaceBeforeCpp11BracedList: true
18+
SpaceBeforeCtorInitializerColon: false
19+
---

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
path = inference-engine/thirdparty/ade
33
url = https://github.com/opencv/ade.git
44
ignore = dirty
5-
[submodule "inference-engine/thirdparty/ngraph"]
6-
path = inference-engine/thirdparty/ngraph
5+
[submodule "ngraph"]
6+
path = ngraph
77
url = https://github.com/NervanaSystems/ngraph.git
88
ignore = dirty

CMakeLists.txt

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# Copyright (C) 2018-2020 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
5+
cmake_policy(SET CMP0054 NEW)
6+
if (APPLE)
7+
# due to https://cmake.org/cmake/help/v3.12/policy/CMP0068.html
8+
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
9+
else()
10+
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
11+
endif()
12+
13+
project(OpenVINO)
14+
15+
set(OpenVINO_MAIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
16+
set(CMAKE_MODULE_PATH "${OpenVINO_MAIN_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
17+
18+
include(CTest)
19+
include(features)
20+
21+
# include developer package
22+
include(developer_package)
23+
24+
# These options are shared with 3rdparty plugins
25+
# by means of developer package
26+
include(check_features)
27+
28+
# resolving dependencies for the project
29+
message (STATUS "PROJECT ............................... " ${PROJECT_NAME})
30+
message (STATUS "CMAKE_BINARY_DIR ...................... " ${CMAKE_BINARY_DIR})
31+
message (STATUS "OpenVINO_MAIN_SOURCE_DIR .............. " ${OpenVINO_MAIN_SOURCE_DIR})
32+
if (ENABLE_INFERENCE_ENGINE)
33+
set(IE_MAIN_SOURCE_DIR ${OpenVINO_MAIN_SOURCE_DIR}/inference-engine)
34+
message (STATUS "IE_MAIN_SOURCE_DIR .............. " ${IE_MAIN_SOURCE_DIR})
35+
endif()
36+
message (STATUS "CMAKE_GENERATOR ....................... " ${CMAKE_GENERATOR})
37+
message (STATUS "CMAKE_C_COMPILER_ID ................... " ${CMAKE_C_COMPILER_ID})
38+
message (STATUS "CMAKE_BUILD_TYPE ...................... " ${CMAKE_BUILD_TYPE})
39+
40+
# remove file with exported developer targets to force its regeneration
41+
file(REMOVE "${CMAKE_BINARY_DIR}/targets_developer.cmake")
42+
file(REMOVE "${CMAKE_BINARY_DIR}/targets.cmake")
43+
44+
function(build_ngraph)
45+
if(NOT ENABLE_NGRAPH)
46+
return()
47+
endif()
48+
49+
function(ngraph_set option value)
50+
if(NOT DEFINED ${option})
51+
set(${option} ${value} CACHE BOOL "" FORCE)
52+
endif()
53+
endfunction()
54+
55+
add_definitions(-DENABLE_NGRAPH)
56+
set(NGRAPH_BUILD_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} CACHE STRING "" FORCE)
57+
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${OpenVINO_MAIN_SOURCE_DIR}/ngraph/cmake/Modules/")
58+
59+
ngraph_set(NGRAPH_ADDRESS_SANITIZER FALSE)
60+
ngraph_set(NGRAPH_TOOLS_ENABLE FALSE)
61+
ngraph_set(NGRAPH_CPU_ENABLE FALSE)
62+
ngraph_set(NGRAPH_MLIR_ENABLE FALSE)
63+
ngraph_set(NGRAPH_INTELGPU_ENABLE FALSE)
64+
ngraph_set(NGRAPH_GPU_ENABLE FALSE)
65+
ngraph_set(NGRAPH_INTERPRETER_ENABLE FALSE)
66+
ngraph_set(NGRAPH_NOP_ENABLE FALSE)
67+
ngraph_set(NGRAPH_GPUH_ENABLE FALSE)
68+
ngraph_set(NGRAPH_GENERIC_CPU_ENABLE FALSE)
69+
ngraph_set(NGRAPH_DEBUG_ENABLE FALSE)
70+
ngraph_set(NGRAPH_DEPRECATED_ENABLE FALSE)
71+
ngraph_set(NGRAPH_DEX_ONLY FALSE)
72+
ngraph_set(NGRAPH_ENABLE_CPU_CONV_AUTO FALSE)
73+
ngraph_set(NGRAPH_CODE_COVERAGE_ENABLE FALSE)
74+
ngraph_set(NGRAPH_LIB_VERSIONING_ENABLE FALSE)
75+
if (ENABLE_PYTHON AND NOT WIN32)
76+
ngraph_set(NGRAPH_PYTHON_BUILD_ENABLE TRUE)
77+
else()
78+
ngraph_set(NGRAPH_PYTHON_BUILD_ENABLE FALSE)
79+
endif()
80+
ngraph_set(NGRAPH_PLAIDML_ENABLE FALSE)
81+
ngraph_set(NGRAPH_DISTRIBUTED_ENABLE FALSE)
82+
ngraph_set(NGRAPH_FAST_MATH_ENABLE FALSE)
83+
ngraph_set(NGRAPH_JSON_ENABLE FALSE)
84+
ngraph_set(NGRAPH_STATIC_LIB_ENABLE FALSE)
85+
ngraph_set(NGRAPH_INTERPRETER_STATIC_LIB_ENABLE FALSE)
86+
ngraph_set(NGRAPH_CPU_STATIC_LIB_ENABLE FALSE)
87+
ngraph_set(NGRAPH_DYNAMIC_COMPONENTS_ENABLE FALSE)
88+
ngraph_set(NGRAPH_NATIVE_ARCH_ENABLE FALSE)
89+
90+
if (NOT ANDROID)
91+
ngraph_set(NGRAPH_UNIT_TEST_ENABLE TRUE)
92+
ngraph_set(NGRAPH_UNIT_TEST_OPENVINO_ENABLE TRUE)
93+
else()
94+
ngraph_set(NGRAPH_UNIT_TEST_ENABLE FALSE)
95+
ngraph_set(NGRAPH_UNIT_TEST_OPENVINO_ENABLE FALSE)
96+
endif()
97+
98+
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
99+
ie_add_compiler_flags(-Wno-error=uninitialized -Wno-error=literal-conversion)
100+
elseif(UNIX)
101+
ie_add_compiler_flags(-Wno-error=maybe-uninitialized -Wno-error=return-type -fPIC)
102+
endif()
103+
if(ANDROID)
104+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=defaulted-function-deleted -Wno-error=unused-command-line-argument")
105+
endif()
106+
107+
# WA for GCC 7.0
108+
if (UNIX)
109+
ie_add_compiler_flags(-Wno-error=return-type -Wno-undef)
110+
elseif(WIN32)
111+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4308 /wd4146")
112+
endif()
113+
114+
if(UNIX)
115+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default")
116+
endif()
117+
118+
if(ENABLE_LTO)
119+
ie_enable_lto()
120+
endif()
121+
122+
ie_cpack_add_component(ngraph)
123+
124+
add_subdirectory(ngraph)
125+
endfunction()
126+
127+
build_ngraph()
128+
129+
if (ENABLE_INFERENCE_ENGINE)
130+
add_subdirectory(inference-engine)
131+
endif()
132+
133+
# cpack
134+
135+
ie_cpack(${IE_CPACK_COMPONENTS_ALL})

README.md

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,58 @@
11
# [OpenVINO™ Toolkit](https://01.org/openvinotoolkit) - Deep Learning Deployment Toolkit repository
2-
[![Stable release](https://img.shields.io/badge/version-2019.R3-green.svg)](https://github.com/opencv/dldt/releases/tag/2019_R3)
2+
[![Stable release](https://img.shields.io/badge/version-2020.1-green.svg)](https://github.com/opencv/dldt/releases/tag/2020.1)
33
[![Apache License Version 2.0](https://img.shields.io/badge/license-Apache_2.0-green.svg)](LICENSE)
44

5-
This toolkit allows developers to deploy pre-trained deep learning models through a high-level C++ Inference Engine API integrated with application logic.
5+
This toolkit allows developers to deploy pre-trained deep learning models
6+
through a high-level C++ Inference Engine API integrated with application logic.
67

7-
This open source version includes two components, namely Model Optimizer and Inference Engine, as well as CPU, GPU and heterogeneous plugins to accelerate deep learning inferencing on Intel(R) CPUs and Intel(R) Processor Graphics. It supports pre-trained models from the [Open Model Zoo](https://github.com/opencv/open_model_zoo/) along with 100+ open source and public models in popular formats such as Caffe*, Tensorflow*, MXNet* and ONNX*.
8+
This open source version includes two components: namely [Model Optimizer] and
9+
[Inference Engine], as well as CPU, GPU and heterogeneous plugins to accelerate
10+
deep learning inferencing on Intel® CPUs and Intel® Processor Graphics.
11+
It supports pre-trained models from the [Open Model Zoo], along with 100+ open
12+
source and public models in popular formats such as Caffe\*, TensorFlow\*,
13+
MXNet\* and ONNX\*.
814

915
## Repository components:
10-
* [Inference Engine](https://software.intel.com/en-us/articles/OpenVINO-InferEngine)
11-
* [Model Optimizer](https://software.intel.com/en-us/articles/OpenVINO-ModelOptimizer)
16+
* [Inference Engine]
17+
* [Model Optimizer]
1218

1319
## License
1420
Deep Learning Deployment Toolkit is licensed under [Apache License Version 2.0](LICENSE).
21+
By contributing to the project, you agree to the license and copyright terms therein
22+
and release your contribution under these terms.
1523

1624
## Documentation
1725
* [OpenVINO™ Release Notes](https://software.intel.com/en-us/articles/OpenVINO-RelNotes)
18-
* [Inference Engine build instructions](inference-engine/README.md)
19-
* [Get Started with Deep Learning Deployment Toolkit on Linux*](get-started-linux.md)
26+
* [OpenVINO™ Inference Engine Build Instructions](build-instruction.md)
27+
* [Get Started with Deep Learning Deployment Toolkit on Linux](get-started-linux.md)\*
2028
* [Introduction to Deep Learning Deployment Toolkit](https://docs.openvinotoolkit.org/latest/_docs_IE_DG_Introduction.html)
2129
* [Inference Engine Developer Guide](https://docs.openvinotoolkit.org/latest/_docs_IE_DG_Deep_Learning_Inference_Engine_DevGuide.html)
2230
* [Model Optimizer Developer Guide](https://docs.openvinotoolkit.org/latest/_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html)
2331

24-
2532
## How to Contribute
26-
We welcome community contributions to the Deep Learning Deployment Toolkit repository. If you have an idea how to improve the product, please share it with us doing the following steps:
33+
We welcome community contributions to the Deep Learning Deployment Toolkit
34+
repository. If you have an idea how to improve the product, please share it
35+
with us doing the following steps:
36+
2737
* Make sure you can build the product and run all tests and samples with your patch
28-
* In case of a larger feature, provide a relevant unit tests and sample
38+
* In case of a larger feature, provide relevant unit tests and one or more sample
2939
* Submit a pull request at https://github.com/opencv/dldt/pulls
3040

31-
We will review your contribution and, if any additional fixes or modifications are necessary, may give some feedback to guide you. When accepted, your pull request will be merged into GitHub* repositories.
32-
33-
Deep Learning Deployment Toolkit is licensed under Apache License, Version 2.0. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.
41+
We will review your contribution and, if any additional fixes or modifications
42+
are necessary, may give some feedback to guide you. Your pull request will be
43+
merged into GitHub* repositories if accepted.
3444

3545
## Support
3646
Please report questions, issues and suggestions using:
37-
* [\#openvino](https://stackoverflow.com/search?q=%23openvino) tag on StackOverflow*
47+
48+
* The `openvino` [tag on StackOverflow]\*
3849
* [GitHub* Issues](https://github.com/opencv/dldt/issues)
3950
* [Forum](https://software.intel.com/en-us/forums/computer-vision)
4051

4152
---
42-
\* Other names and brands may be claimed as the property of others.
53+
\* Other names and brands may be claimed as the property of others.
54+
55+
[Open Model Zoo]:https://github.com/opencv/open_model_zoo
56+
[Inference Engine]:https://software.intel.com/en-us/articles/OpenVINO-InferEngine
57+
[Model Optimizer]:https://software.intel.com/en-us/articles/OpenVINO-ModelOptimizer
58+
[tag on StackOverflow]:https://stackoverflow.com/search?q=%23openvino

0 commit comments

Comments
 (0)