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
b3d93809
Commit
b3d93809
authored
Oct 30, 2017
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move all test code to test directory. Put test utils into the test/util directory.
parent
ecba03a3
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
12 additions
and
36 deletions
+12
-36
CMakeLists.txt
src/ngraph/CMakeLists.txt
+0
-1
CMakeLists.txt
test/CMakeLists.txt
+3
-3
element_type.cpp
test/element_type.cpp
+0
-23
pass_liveness.cpp
test/pass_liveness.cpp
+1
-1
pass_manager.cpp
test/pass_manager.cpp
+1
-1
pass_memory_layout.cpp
test/pass_memory_layout.cpp
+1
-1
tensor.cpp
test/tensor.cpp
+1
-1
topological_sort.cpp
test/topological_sort.cpp
+1
-1
util.cpp
test/util.cpp
+1
-1
all_close.cpp
test/util/all_close.cpp
+1
-1
all_close.hpp
test/util/all_close.hpp
+0
-0
autodiff.cpp
test/util/autodiff.cpp
+2
-2
random.hpp
test/util/random.hpp
+0
-0
test_tools.cpp
test/util/test_tools.cpp
+0
-0
test_tools.hpp
test/util/test_tools.hpp
+0
-0
No files found.
src/ngraph/CMakeLists.txt
View file @
b3d93809
...
@@ -77,7 +77,6 @@ set (SRC
...
@@ -77,7 +77,6 @@ set (SRC
runtime/tensor_view.cpp
runtime/tensor_view.cpp
runtime/tuple.cpp
runtime/tuple.cpp
runtime/utils.cpp
runtime/utils.cpp
test/all_close.cpp
shape.cpp
shape.cpp
types/element_type.cpp
types/element_type.cpp
types/type.cpp
types/type.cpp
...
...
test/CMakeLists.txt
View file @
b3d93809
...
@@ -22,10 +22,8 @@ include_directories(
...
@@ -22,10 +22,8 @@ include_directories(
)
)
set
(
SRC
set
(
SRC
autodiff.cpp
build_graph.cpp
build_graph.cpp
eigen.cpp
eigen.cpp
element_type.cpp
execute.cpp
execute.cpp
input_output_assign.cpp
input_output_assign.cpp
main.cpp
main.cpp
...
@@ -35,9 +33,11 @@ set (SRC
...
@@ -35,9 +33,11 @@ set (SRC
pass_memory_layout.cpp
pass_memory_layout.cpp
shape.cpp
shape.cpp
tensor.cpp
tensor.cpp
test_tools.cpp
topological_sort.cpp
topological_sort.cpp
type_prop.cpp
type_prop.cpp
util/all_close.cpp
util/autodiff.cpp
util/test_tools.cpp
util.cpp
util.cpp
uuid.cpp
uuid.cpp
)
)
...
...
test/element_type.cpp
deleted
100644 → 0
View file @
ecba03a3
// ----------------------------------------------------------------------------
// 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 <sstream>
#include <string>
#include <vector>
#include "gtest/gtest.h"
#include "ngraph/types/element_type.hpp"
using
namespace
ngraph
;
test/pass_liveness.cpp
View file @
b3d93809
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#include "ngraph/pass/topological_sort.hpp"
#include "ngraph/pass/topological_sort.hpp"
#include "ngraph/pass/visualize_tree.hpp"
#include "ngraph/pass/visualize_tree.hpp"
#include "test_tools.hpp"
#include "
util/
test_tools.hpp"
using
namespace
std
;
using
namespace
std
;
using
namespace
ngraph
;
using
namespace
ngraph
;
...
...
test/pass_manager.cpp
View file @
b3d93809
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include "ngraph/pass/propagate_types.hpp"
#include "ngraph/pass/propagate_types.hpp"
#include "ngraph/pass/topological_sort.hpp"
#include "ngraph/pass/topological_sort.hpp"
#include "ngraph/util.hpp"
#include "ngraph/util.hpp"
#include "test_tools.hpp"
#include "
util/
test_tools.hpp"
using
namespace
ngraph
;
using
namespace
ngraph
;
using
namespace
std
;
using
namespace
std
;
...
...
test/pass_memory_layout.cpp
View file @
b3d93809
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "ngraph/pass/propagate_types.hpp"
#include "ngraph/pass/propagate_types.hpp"
#include "ngraph/pass/topological_sort.hpp"
#include "ngraph/pass/topological_sort.hpp"
#include "ngraph/pass/visualize_tree.hpp"
#include "ngraph/pass/visualize_tree.hpp"
#include "test_tools.hpp"
#include "
util/
test_tools.hpp"
using
namespace
ngraph
;
using
namespace
ngraph
;
using
namespace
std
;
using
namespace
std
;
...
...
test/tensor.cpp
View file @
b3d93809
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include "ngraph/pass/manager.hpp"
#include "ngraph/pass/manager.hpp"
#include "ngraph/pass/propagate_types.hpp"
#include "ngraph/pass/propagate_types.hpp"
#include "ngraph/pass/topological_sort.hpp"
#include "ngraph/pass/topological_sort.hpp"
#include "test_tools.hpp"
#include "
util/
test_tools.hpp"
using
namespace
std
;
using
namespace
std
;
using
namespace
ngraph
;
using
namespace
ngraph
;
...
...
test/topological_sort.cpp
View file @
b3d93809
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "ngraph/pass/topological_sort.hpp"
#include "ngraph/pass/topological_sort.hpp"
#include "ngraph/pass/visualize_tree.hpp"
#include "ngraph/pass/visualize_tree.hpp"
#include "ngraph/util.hpp"
#include "ngraph/util.hpp"
#include "test_tools.hpp"
#include "
util/
test_tools.hpp"
using
namespace
std
;
using
namespace
std
;
using
namespace
ngraph
;
using
namespace
ngraph
;
...
...
test/util.cpp
View file @
b3d93809
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
#include "gtest/gtest.h"
#include "gtest/gtest.h"
#include "ngraph/ngraph.hpp"
#include "ngraph/ngraph.hpp"
#include "ngraph/test/all_close.hpp"
#include "ngraph/util.hpp"
#include "ngraph/util.hpp"
#include "util/all_close.hpp"
using
namespace
std
;
using
namespace
std
;
using
namespace
ngraph
;
using
namespace
ngraph
;
...
...
src/ngraph/test
/all_close.cpp
→
test/util
/all_close.cpp
View file @
b3d93809
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#include <vector>
#include <vector>
#include "ngraph/except.hpp"
#include "ngraph/except.hpp"
#include "
ngraph/test/
all_close.hpp"
#include "all_close.hpp"
template
<
typename
ET
>
template
<
typename
ET
>
bool
ngraph
::
test
::
all_close
(
bool
ngraph
::
test
::
all_close
(
...
...
src/ngraph/test
/all_close.hpp
→
test/util
/all_close.hpp
View file @
b3d93809
File moved
test/autodiff.cpp
→
test/
util/
autodiff.cpp
View file @
b3d93809
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
#include "ngraph/autodiff/backprop_function.hpp"
#include "ngraph/autodiff/backprop_function.hpp"
#include "ngraph/autodiff/numeric_derivative.hpp"
#include "ngraph/autodiff/numeric_derivative.hpp"
#include "ngraph/ngraph.hpp"
#include "ngraph/ngraph.hpp"
#include "
ngraph/test/
all_close.hpp"
#include "all_close.hpp"
#include "
ngraph/test/
random.hpp"
#include "random.hpp"
using
namespace
std
;
using
namespace
std
;
using
namespace
ngraph
;
using
namespace
ngraph
;
...
...
src/ngraph/test
/random.hpp
→
test/util
/random.hpp
View file @
b3d93809
File moved
test/test_tools.cpp
→
test/
util/
test_tools.cpp
View file @
b3d93809
File moved
test/test_tools.hpp
→
test/
util/
test_tools.hpp
View file @
b3d93809
File moved
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