Commit 51dcfe07 authored by Robert Kimball's avatar Robert Kimball Committed by Scott Cyphers

Bob/includes (#266)

* add json lib 2.1.1

* turn off clang-format for json lib

* add unit test file

* add code to poison the use of ngraph.hpp from within the ngraph library
parent de82a3eb
......@@ -11,5 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIN_NGRAPH_LIBRARY")
add_subdirectory( ngraph )
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -18,6 +18,10 @@
#pragma once
#ifdef IN_NGRAPH_LIBRARY
#error("ngraph.hpp is for external use only")
#endif
/// @namespace ngraph
/// @brief The Intel Nervana Graph C++ API.
......
......@@ -12,8 +12,10 @@
// See the License for the specific language governing permissions and
// ----------------------------------------------------------------------------
#include "ngraph/node.hpp"
#include "ngraph/autodiff/adjoints.hpp"
#include "ngraph/ngraph.hpp"
#include "ngraph/descriptor/primary_tensor_view.hpp"
#include "ngraph/ops/parameter.hpp"
using namespace std;
using namespace ngraph;
......
......@@ -34,6 +34,7 @@ set (SRC
pass_liveness.cpp
pass_manager.cpp
pass_memory_layout.cpp
serialize.cpp
shape.cpp
tensor.cpp
topological_sort.cpp
......
// ----------------------------------------------------------------------------
// 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
// ----------------------------------------------------------------------------
#include "gtest/gtest.h"
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