Commit 25e45f5a authored by Christian Convey's avatar Christian Convey

Moves src tree under `ngraph` dir

* Done to achieve goal of having our #include directives all start
  with `"ngraph/`, like LLVM does.
parent e9d403d1
...@@ -13,6 +13,10 @@ ...@@ -13,6 +13,10 @@
cmake_minimum_required (VERSION 2.8) cmake_minimum_required (VERSION 2.8)
set(NGRAPH_INCLUDE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/src
)
# Suppress an OS X-specific warning. # Suppress an OS X-specific warning.
if (POLICY CMP0042) if (POLICY CMP0042)
cmake_policy(SET CMP0042 OLD) cmake_policy(SET CMP0042 OLD)
......
...@@ -11,122 +11,5 @@ ...@@ -11,122 +11,5 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
include_directories(SYSTEM ${EIGEN_INCLUDE_DIR}) add_subdirectory( ngraph )
set (SRC
log.cpp
descriptor/input.cpp
descriptor/output.cpp
descriptor/tensor_view.cpp
descriptor/tensor.cpp
function.cpp
node.cpp
shape.cpp
pass/assign_tensors.cpp
pass/call_pass.cpp
pass/dump_sorted.cpp
pass/liveness.cpp
pass/manager.cpp
pass/memory_layout.cpp
pass/pass.cpp
pass/propagate_types.cpp
pass/topological_sort.cpp
pass/tree_pass.cpp
pass/visualize_tree.cpp
runtime/call_frame.cpp
runtime/eigen/external_function.cpp
runtime/eigen/tensor_view.cpp
shape.cpp
visualize.cpp
ops/binary_elementwise_arithmetic.cpp
ops/binary_elementwise_builtin.cpp
ops/binary_elementwise_comparison.cpp
ops/broadcast.cpp
ops/concatenate.cpp
ops/constant.cpp
ops/convert.cpp
ops/dot.cpp
ops/op.cpp
ops/parameter.cpp
ops/tuple.cpp
ops/unary_elementwise_arithmetic.cpp
ops/unary_elementwise_builtin.cpp
tree.cpp
types/element_type.cpp
types/type.cpp
util.cpp
)
set(NGRAPH_INCLUDE_PATH
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/ngraph
)
# find_program (GRAPHVIZ dot)
# message (STATUS "graphviz '${GRAPHVIZ}'")
find_package(Graphviz)
if (GRAPHVIZ_FOUND)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGRAPHVIZ_FOUND")
endif()
include_directories("${NGRAPH_INCLUDE_PATH}")
add_library(ngraph SHARED ${SRC})
target_include_directories(ngraph PUBLIC "${NGRAPH_INCLUDE_PATH}")
if (APPLE)
set_property(TARGET ngraph PROPERTY PREFIX "lib")
set_property(TARGET ngraph PROPERTY OUTPUT_NAME "ngraph.so")
set_property(TARGET ngraph PROPERTY SUFFIX "")
endif()
#-----------------------------------------------------------------------------------------------
# Installation logic...
#-----------------------------------------------------------------------------------------------
# Default installation location for cmake usually is /usr/include or /usr/local/include
# which requires sudo access on most servers. Also, this creates a problem for the shared
# development systems (e.g., build servers).
#
# Therefore we are setting the installation directory so that by defult "make install"
# won't override artifacts generated by other users.
#
# The user can always override this by using the cmake command listed below.
set(CMAKE_INSTALL_PREFIX "$ENV{HOME}/ngraph_dist" CACHE PATH "Install directory" FORCE)
message (STATUS "Installation directory: ${CMAKE_INSTALL_PREFIX}")
message (STATUS "To Override use: cmake -DCMAKE_INSTALL_PREFIX=/foo -P cmake_install.cmake")
# Destinations
set(CMAKE_INSTALL_LIB "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_INCLUDE "${CMAKE_INSTALL_PREFIX}/include")
# NGraph
install(TARGETS ngraph DESTINATION ${CMAKE_INSTALL_LIB}) # libngraph.so
install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/
DESTINATION "${CMAKE_INSTALL_INCLUDE}"
FILES_MATCHING PATTERN "*.hpp"
)
# External
# Requirements:
# - In NGraph, there are multiple include paths set for different external projects.
# - However, we want one single include path for external projects from the TF bridge side, while
# making sure that the `#include` files can still be resolved.
# - Therefore, when `make install`, the include directory will be "flattened" for each external
# projects respectively.
install(DIRECTORY
${EIGEN_INCLUDE_DIR}/
DESTINATION "${CMAKE_INSTALL_INCLUDE}"
)
install(DIRECTORY
${MKLDNN_INCLUDE_DIR}/
DESTINATION "${CMAKE_INSTALL_INCLUDE}"
)
install(DIRECTORY
${MKLDNN_LIB_DIR}/
DESTINATION "${CMAKE_INSTALL_LIB}"
)
add_dependencies(ngraph eigen)
# Copyright 2017 Nervana Systems Inc.
# 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.
set (SRC
log.cpp
descriptor/input.cpp
descriptor/output.cpp
descriptor/tensor_view.cpp
descriptor/tensor.cpp
function.cpp
node.cpp
shape.cpp
pass/assign_tensors.cpp
pass/call_pass.cpp
pass/dump_sorted.cpp
pass/liveness.cpp
pass/manager.cpp
pass/memory_layout.cpp
pass/pass.cpp
pass/propagate_types.cpp
pass/topological_sort.cpp
pass/tree_pass.cpp
pass/visualize_tree.cpp
runtime/call_frame.cpp
runtime/eigen/external_function.cpp
runtime/eigen/tensor_view.cpp
shape.cpp
visualize.cpp
ops/binary_elementwise_arithmetic.cpp
ops/binary_elementwise_builtin.cpp
ops/binary_elementwise_comparison.cpp
ops/broadcast.cpp
ops/concatenate.cpp
ops/constant.cpp
ops/convert.cpp
ops/dot.cpp
ops/op.cpp
ops/parameter.cpp
ops/tuple.cpp
ops/unary_elementwise_arithmetic.cpp
ops/unary_elementwise_builtin.cpp
tree.cpp
types/element_type.cpp
types/type.cpp
util.cpp
)
# find_program (GRAPHVIZ dot)
# message (STATUS "graphviz '${GRAPHVIZ}'")
find_package(Graphviz)
if (GRAPHVIZ_FOUND)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGRAPHVIZ_FOUND")
endif()
include_directories(
"${NGRAPH_INCLUDE_PATH}"
"${EIGEN_INCLUDE_DIR}"
"${MKLDNN_INCLUDE_DIR}"
)
add_library(ngraph SHARED ${SRC})
target_include_directories(ngraph PUBLIC "${NGRAPH_INCLUDE_PATH}")
if (APPLE)
set_property(TARGET ngraph PROPERTY PREFIX "lib")
set_property(TARGET ngraph PROPERTY OUTPUT_NAME "ngraph.so")
set_property(TARGET ngraph PROPERTY SUFFIX "")
endif()
#-----------------------------------------------------------------------------------------------
# Installation logic...
#-----------------------------------------------------------------------------------------------
# Default installation location for cmake usually is /usr/include or /usr/local/include
# which requires sudo access on most servers. Also, this creates a problem for the shared
# development systems (e.g., build servers).
#
# Therefore we are setting the installation directory so that by defult "make install"
# won't override artifacts generated by other users.
#
# The user can always override this by using the cmake command listed below.
set(CMAKE_INSTALL_PREFIX "$ENV{HOME}/ngraph_dist" CACHE PATH "Install directory" FORCE)
message (STATUS "Installation directory: ${CMAKE_INSTALL_PREFIX}")
message (STATUS "To Override use: cmake -DCMAKE_INSTALL_PREFIX=/foo -P cmake_install.cmake")
# Destinations
set(CMAKE_INSTALL_LIB "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_INCLUDE "${CMAKE_INSTALL_PREFIX}/include")
# NGraph
install(TARGETS ngraph DESTINATION ${CMAKE_INSTALL_LIB}) # libngraph.so
install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/
DESTINATION "${CMAKE_INSTALL_INCLUDE}/ngraph"
FILES_MATCHING PATTERN "*.hpp"
)
# External
# Requirements:
# - In NGraph, there are multiple include paths set for different external projects.
# - However, we want one single include path for external projects from the TF bridge side, while
# making sure that the `#include` files can still be resolved.
# - Therefore, when `make install`, the include directory will be "flattened" for each external
# projects respectively.
install(DIRECTORY
${EIGEN_INCLUDE_DIR}/
DESTINATION "${CMAKE_INSTALL_INCLUDE}"
)
install(DIRECTORY
${MKLDNN_INCLUDE_DIR}/
DESTINATION "${CMAKE_INSTALL_INCLUDE}"
)
install(DIRECTORY
${MKLDNN_LIB_DIR}/
DESTINATION "${CMAKE_INSTALL_LIB}"
)
add_dependencies(ngraph eigen)
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "descriptor/tensor_view.hpp" #include "ngraph/descriptor/tensor_view.hpp"
#include "function.hpp" #include "ngraph/function.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <memory> #include <memory>
#include "descriptor/tensor.hpp" #include "ngraph/descriptor/tensor.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <memory> #include <memory>
#include <set> #include <set>
#include "descriptor/tensor_view.hpp" #include "ngraph/descriptor/tensor_view.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "descriptor/tensor.hpp" #include "ngraph/descriptor/tensor.hpp"
#include "node.hpp" #include "ngraph/node.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "descriptor/tensor_view.hpp" #include "ngraph/descriptor/tensor_view.hpp"
using namespace ngraph; using namespace ngraph;
using namespace descriptor; using namespace descriptor;
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
#pragma once #pragma once
#include "descriptor/tensor.hpp" #include "ngraph/descriptor/tensor.hpp"
#include "shape.hpp" #include "ngraph/shape.hpp"
#include "types/type.hpp" #include "ngraph/types/type.hpp"
#include "log.hpp" #include "ngraph/log.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "function.hpp" #include "ngraph/function.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
#pragma once #pragma once
#include "descriptor/tensor_view.hpp" #include "ngraph/descriptor/tensor_view.hpp"
#include "node.hpp" #include "ngraph/node.hpp"
#include "ops/op.hpp" #include "ngraph/ops/op.hpp"
#include "ops/parameter.hpp" #include "ngraph/ops/parameter.hpp"
#include "runtime/instruction.hpp" #include "ngraph/runtime/instruction.hpp"
#include "types/type.hpp" #include "ngraph/types/type.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <mutex> #include <mutex>
#include <thread> #include <thread>
#include "log.hpp" #include "ngraph/log.hpp"
using namespace std; using namespace std;
......
...@@ -18,51 +18,51 @@ ...@@ -18,51 +18,51 @@
#pragma once #pragma once
#include "common.hpp" #include "ngraph/common.hpp"
#include "descriptor/buffer.hpp" #include "ngraph/descriptor/buffer.hpp"
#include "descriptor/call_frame.hpp" #include "ngraph/descriptor/call_frame.hpp"
#include "descriptor/input.hpp" #include "ngraph/descriptor/input.hpp"
#include "descriptor/output.hpp" #include "ngraph/descriptor/output.hpp"
#include "descriptor/tensor.hpp" #include "ngraph/descriptor/tensor.hpp"
#include "descriptor/tensor_view.hpp" #include "ngraph/descriptor/tensor_view.hpp"
#include "descriptor/tensor_view_layout.hpp" #include "ngraph/descriptor/tensor_view_layout.hpp"
#include "types/element_type.hpp" #include "ngraph/types/element_type.hpp"
#include "except.hpp" #include "ngraph/except.hpp"
#include "function.hpp" #include "ngraph/function.hpp"
#include "node.hpp" #include "ngraph/node.hpp"
#include "ops/abs.hpp" #include "ngraph/ops/abs.hpp"
#include "ops/add.hpp" #include "ngraph/ops/add.hpp"
#include "ops/broadcast.hpp" #include "ngraph/ops/broadcast.hpp"
#include "ops/ceiling.hpp" #include "ngraph/ops/ceiling.hpp"
#include "ops/concatenate.hpp" #include "ngraph/ops/concatenate.hpp"
#include "ops/constant.hpp" #include "ngraph/ops/constant.hpp"
#include "ops/convert.hpp" #include "ngraph/ops/convert.hpp"
#include "ops/divide.hpp" #include "ngraph/ops/divide.hpp"
#include "ops/dot.hpp" #include "ngraph/ops/dot.hpp"
#include "ops/equal.hpp" #include "ngraph/ops/equal.hpp"
#include "ops/exp.hpp" #include "ngraph/ops/exp.hpp"
#include "ops/floor.hpp" #include "ngraph/ops/floor.hpp"
#include "ops/greater.hpp" #include "ngraph/ops/greater.hpp"
#include "ops/less.hpp" #include "ngraph/ops/less.hpp"
#include "ops/log.hpp" #include "ngraph/ops/log.hpp"
#include "ops/maximum.hpp" #include "ngraph/ops/maximum.hpp"
#include "ops/minimum.hpp" #include "ngraph/ops/minimum.hpp"
#include "ops/multiply.hpp" #include "ngraph/ops/multiply.hpp"
#include "ops/negative.hpp" #include "ngraph/ops/negative.hpp"
#include "ops/op.hpp" #include "ngraph/ops/op.hpp"
#include "ops/parameter.hpp" #include "ngraph/ops/parameter.hpp"
#include "ops/power.hpp" #include "ngraph/ops/power.hpp"
#include "ops/remainder.hpp" #include "ngraph/ops/remainder.hpp"
#include "ops/subtract.hpp" #include "ngraph/ops/subtract.hpp"
#include "ops/tuple.hpp" #include "ngraph/ops/tuple.hpp"
#include "runtime/eigen/add.hpp" #include "ngraph/runtime/eigen/add.hpp"
#include "runtime/eigen/external_function.hpp" #include "ngraph/runtime/eigen/external_function.hpp"
#include "runtime/eigen/multiply.hpp" #include "ngraph/runtime/eigen/multiply.hpp"
#include "runtime/eigen/return.hpp" #include "ngraph/runtime/eigen/return.hpp"
#include "runtime/eigen/tensor_view.hpp" #include "ngraph/runtime/eigen/tensor_view.hpp"
#include "runtime/call_frame.hpp" #include "ngraph/runtime/call_frame.hpp"
#include "function.hpp" #include "ngraph/function.hpp"
#include "runtime/instruction.hpp" #include "ngraph/runtime/instruction.hpp"
#include "runtime/tensor_view.hpp" #include "ngraph/runtime/tensor_view.hpp"
#include "shape.hpp" #include "ngraph/shape.hpp"
#include "types/type.hpp" #include "ngraph/types/type.hpp"
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
#include <iostream> #include <iostream>
#include "common.hpp" #include "ngraph/common.hpp"
#include "types/type.hpp" #include "ngraph/types/type.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#include <memory> #include <memory>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "log.hpp" #include "ngraph/log.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include <sstream> #include <sstream>
#include "types/element_type.hpp" #include "ngraph/types/element_type.hpp"
#include "runtime/eigen/tensor_view.hpp" #include "ngraph/runtime/eigen/tensor_view.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace ngraph; using namespace ngraph;
using namespace std; using namespace std;
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#include <memory> #include <memory>
#include "node.hpp" #include "ngraph/node.hpp"
#include "ops/parameter.hpp" #include "ngraph/ops/parameter.hpp"
#include "types/type.hpp" #include "ngraph/types/type.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <sstream> #include <sstream>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#pragma once #pragma once
#include "node.hpp" #include "ngraph/node.hpp"
#include "types/type.hpp" #include "ngraph/types/type.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph::op; using namespace ngraph::op;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <memory> #include <memory>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "assign_tensors.hpp" #include "ngraph/pass/assign_tensors.hpp"
#include <exception> #include <exception>
#include <sstream> #include <sstream>
#include "log.hpp" #include "ngraph/log.hpp"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "propagate_types.hpp" #include "ngraph/pass/propagate_types.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#pragma once #pragma once
#include "call_pass.hpp" #include "ngraph/pass/call_pass.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "call_pass.hpp" #include "ngraph/pass/call_pass.hpp"
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "pass.hpp" #include "ngraph/pass/pass.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
#include <fstream> #include <fstream>
#include "dump_sorted.hpp" #include "ngraph/pass/dump_sorted.hpp"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "util.hpp" #include "ngraph/util.hpp"
using namespace ngraph; using namespace ngraph;
using namespace std; using namespace std;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <string> #include <string>
#include "call_pass.hpp" #include "ngraph/pass/call_pass.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
#include <sstream> #include <sstream>
#include <unordered_set> #include <unordered_set>
#include "log.hpp" #include "ngraph/log.hpp"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "pass/assign_tensors.hpp" #include "ngraph/pass/assign_tensors.hpp"
#include "pass/liveness.hpp" #include "ngraph/pass/liveness.hpp"
#include "util.hpp" #include "ngraph/util.hpp"
#include "log.hpp" #include "ngraph/log.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#pragma once #pragma once
#include "call_pass.hpp" #include "ngraph/pass/call_pass.hpp"
#include "descriptor/tensor.hpp" #include "ngraph/descriptor/tensor.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
#include <iostream> #include <iostream>
#include <memory> #include <memory>
#include "log.hpp" #include "ngraph/log.hpp"
#include "manager.hpp" #include "ngraph/pass/manager.hpp"
#include "node.hpp" #include "ngraph/node.hpp"
using namespace std; using namespace std;
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include <vector> #include <vector>
#include "call_pass.hpp" #include "ngraph/pass/call_pass.hpp"
#include "tree_pass.hpp" #include "ngraph/pass/tree_pass.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
#include <exception> #include <exception>
#include <sstream> #include <sstream>
#include "log.hpp" #include "ngraph/log.hpp"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "pass/liveness.hpp" #include "ngraph/pass/liveness.hpp"
#include "pass/memory_layout.hpp" #include "ngraph/pass/memory_layout.hpp"
#include "log.hpp" #include "ngraph/log.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <list> #include <list>
#include <sstream> #include <sstream>
#include "call_pass.hpp" #include "ngraph/pass/call_pass.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "pass.hpp" #include "ngraph/pass/pass.hpp"
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#include <sstream> #include <sstream>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "propagate_types.hpp" #include "ngraph/pass/propagate_types.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#pragma once #pragma once
#include "call_pass.hpp" #include "ngraph/pass/call_pass.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
#include <deque> #include <deque>
#include <unordered_map> #include <unordered_map>
#include "log.hpp" #include "ngraph/log.hpp"
#include "node.hpp" #include "ngraph/node.hpp"
#include "pass/topological_sort.hpp" #include "ngraph/pass/topological_sort.hpp"
#include "util.hpp" #include "ngraph/util.hpp"
using namespace ngraph; using namespace ngraph;
using namespace std; using namespace std;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <list> #include <list>
#include <memory> #include <memory>
#include "pass/tree_pass.hpp" #include "ngraph/pass/tree_pass.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "tree_pass.hpp" #include "ngraph/pass/tree_pass.hpp"
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "pass.hpp" #include "ngraph/pass/pass.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
#include <fstream> #include <fstream>
#include "visualize_tree.hpp" #include "ngraph/pass/visualize_tree.hpp"
#include "node.hpp" #include "ngraph/node.hpp"
#include "util.hpp" #include "ngraph/util.hpp"
using namespace ngraph; using namespace ngraph;
using namespace std; using namespace std;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <string> #include <string>
#include <set> #include <set>
#include "pass/tree_pass.hpp" #include "ngraph/pass/tree_pass.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <algorithm> #include <algorithm>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "runtime/tensor_view.hpp" #include "ngraph/runtime/tensor_view.hpp"
#include "function.hpp" #include "ngraph/function.hpp"
#include "runtime/instruction.hpp" #include "ngraph/runtime/instruction.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
#pragma once #pragma once
#include "runtime/call_frame.hpp" #include "ngraph/runtime/call_frame.hpp"
#include "runtime/eigen/tensor_view.hpp" #include "ngraph/runtime/eigen/tensor_view.hpp"
#include "runtime/instruction.hpp" #include "ngraph/runtime/instruction.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -18,17 +18,17 @@ ...@@ -18,17 +18,17 @@
#include <typeinfo> #include <typeinfo>
#include <unordered_map> #include <unordered_map>
#include "descriptor/input.hpp" #include "ngraph/descriptor/input.hpp"
#include "descriptor/output.hpp" #include "ngraph/descriptor/output.hpp"
#include "function.hpp" #include "ngraph/function.hpp"
#include "node.hpp" #include "ngraph/node.hpp"
#include "ops/add.hpp" #include "ngraph/ops/add.hpp"
#include "ops/multiply.hpp" #include "ngraph/ops/multiply.hpp"
#include "pass/topological_sort.hpp" #include "ngraph/pass/topological_sort.hpp"
#include "runtime/eigen/add.hpp" #include "ngraph/runtime/eigen/add.hpp"
#include "runtime/eigen/external_function.hpp" #include "ngraph/runtime/eigen/external_function.hpp"
#include "runtime/eigen/multiply.hpp" #include "ngraph/runtime/eigen/multiply.hpp"
#include "runtime/eigen/return.hpp" #include "ngraph/runtime/eigen/return.hpp"
using namespace std; using namespace std;
using namespace ngraph::runtime::eigen; using namespace ngraph::runtime::eigen;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <typeinfo> #include <typeinfo>
#include <unordered_map> #include <unordered_map>
#include "function.hpp" #include "ngraph/function.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#pragma once #pragma once
#include "runtime/call_frame.hpp" #include "ngraph/runtime/call_frame.hpp"
#include "runtime/instruction.hpp" #include "ngraph/runtime/instruction.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#pragma once #pragma once
#include "runtime/call_frame.hpp" #include "ngraph/runtime/call_frame.hpp"
#include "runtime/instruction.hpp" #include "ngraph/runtime/instruction.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <Eigen/Dense> #include <Eigen/Dense>
#include <memory> #include <memory>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace Eigen; using namespace Eigen;
using namespace ngraph::runtime::eigen; using namespace ngraph::runtime::eigen;
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
#include <Eigen/Dense> #include <Eigen/Dense>
#include <vector> #include <vector>
#include "shape.hpp" #include "ngraph/shape.hpp"
#include "runtime/tensor_view.hpp" #include "ngraph/runtime/tensor_view.hpp"
#include "descriptor/tensor_view.hpp" #include "ngraph/descriptor/tensor_view.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <algorithm> #include <algorithm>
#include <vector> #include <vector>
#include "shape.hpp" #include "ngraph/shape.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <iostream> #include <iostream>
#include <vector> #include <vector>
#include "common.hpp" #include "ngraph/common.hpp"
namespace ngraph namespace ngraph
{ {
......
#include "tree.hpp" #include "ngraph/tree.hpp"
#include "util.hpp" #include "ngraph/util.hpp"
//================================================================================================ //================================================================================================
// //
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <iostream> #include <iostream>
#include <vector> #include <vector>
#include "util.hpp" #include "ngraph/util.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include <cmath> #include <cmath>
#include <iostream> #include <iostream>
#include "element_type.hpp" #include "ngraph/types/element_type.hpp"
#include "log.hpp" #include "ngraph/log.hpp"
using namespace ngraph; using namespace ngraph;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <string> #include <string>
#include <type_traits> #include <type_traits>
#include "except.hpp" #include "ngraph/except.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
#include <memory> #include <memory>
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "log.hpp" #include "ngraph/log.hpp"
#include "util.hpp" #include "ngraph/util.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "types/element_type.hpp" #include "ngraph/types/element_type.hpp"
#include "shape.hpp" #include "ngraph/shape.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
#include <forward_list> #include <forward_list>
#include <unordered_set> #include <unordered_set>
#include "util.hpp" #include "ngraph/util.hpp"
#include "node.hpp" #include "ngraph/node.hpp"
#include "log.hpp" #include "ngraph/log.hpp"
using namespace std; using namespace std;
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#include <fstream> #include <fstream>
#include <list> #include <list>
#include "node.hpp" #include "ngraph/node.hpp"
#include "visualize.hpp" #include "ngraph/visualize.hpp"
#include "util.hpp" #include "ngraph/util.hpp"
using namespace ngraph; using namespace ngraph;
using namespace std; using namespace std;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include <memory> #include <memory>
using namespace std; using namespace std;
......
...@@ -18,6 +18,6 @@ ...@@ -18,6 +18,6 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "types/element_type.hpp" #include "ngraph/types/element_type.hpp"
using namespace ngraph; using namespace ngraph;
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include <memory> #include <memory>
using namespace std; using namespace std;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <iostream> #include <iostream>
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "log.hpp" #include "ngraph/log.hpp"
using namespace std; using namespace std;
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
#include <vector> #include <vector>
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "log.hpp" #include "ngraph/log.hpp"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -19,17 +19,18 @@ ...@@ -19,17 +19,18 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "pass/liveness.hpp" #include "ngraph/pass/liveness.hpp"
#include "pass/assign_tensors.hpp" #include "ngraph/pass/assign_tensors.hpp"
#include "pass/manager.hpp" #include "ngraph/pass/manager.hpp"
#include "pass/propagate_types.hpp" #include "ngraph/pass/propagate_types.hpp"
#include "pass/topological_sort.hpp" #include "ngraph/pass/topological_sort.hpp"
#include "pass/liveness.hpp" #include "ngraph/pass/liveness.hpp"
#include "pass/visualize_tree.hpp" #include "ngraph/pass/visualize_tree.hpp"
#include "pass/dump_sorted.hpp" #include "ngraph/pass/dump_sorted.hpp"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "ngraph/log.hpp"
#include "test_tools.hpp" #include "test_tools.hpp"
#include "log.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -19,11 +19,11 @@ ...@@ -19,11 +19,11 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "pass/assign_tensors.hpp" #include "ngraph/pass/assign_tensors.hpp"
#include "pass/manager.hpp" #include "ngraph/pass/manager.hpp"
#include "pass/propagate_types.hpp" #include "ngraph/pass/propagate_types.hpp"
#include "pass/topological_sort.hpp" #include "ngraph/pass/topological_sort.hpp"
#include "test_tools.hpp" #include "test_tools.hpp"
using namespace ngraph; using namespace ngraph;
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "pass/memory_layout.hpp" #include "ngraph/pass/memory_layout.hpp"
#include "test_tools.hpp" #include "test_tools.hpp"
using namespace ngraph; using namespace ngraph;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#include <algorithm> #include <algorithm>
#include "test_tools.hpp" #include "test_tools.hpp"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "util.hpp" #include "ngraph/util.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -19,11 +19,11 @@ ...@@ -19,11 +19,11 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include "pass/topological_sort.hpp" #include "ngraph/pass/topological_sort.hpp"
#include "visualize.hpp" #include "ngraph/visualize.hpp"
#include "util.hpp" #include "ngraph/util.hpp"
#include "log.hpp" #include "ngraph/log.hpp"
#include "test_tools.hpp" #include "test_tools.hpp"
using namespace std; using namespace std;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "ngraph.hpp" #include "ngraph/ngraph.hpp"
#include <memory> #include <memory>
using namespace std; using namespace std;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "util.hpp" #include "ngraph/util.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "uuid.hpp" #include "ngraph/uuid.hpp"
using namespace std; using namespace std;
using namespace ngraph; using namespace ngraph;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment