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
c1806e85
Commit
c1806e85
authored
Aug 22, 2017
by
Robert Kimball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directory cleanup
parent
19f16bc1
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
18 additions
and
40 deletions
+18
-40
names.cpp
graveyard/src/names.cpp
+0
-0
names.hpp
graveyard/src/names.hpp
+0
-0
strides.cpp
graveyard/src/strides.cpp
+0
-0
strides.hpp
graveyard/src/strides.hpp
+0
-0
axes.cpp
graveyard/src/transformers/axes.cpp
+0
-0
axes.hpp
graveyard/src/transformers/axes.hpp
+0
-0
exop.cpp
graveyard/src/transformers/exop.cpp
+0
-0
exop.hpp
graveyard/src/transformers/exop.hpp
+0
-0
mock.hpp
graveyard/src/transformers/mock.hpp
+0
-0
mock_transformer.cpp
graveyard/src/transformers/mock_transformer.cpp
+0
-0
mock_transformer.hpp
graveyard/src/transformers/mock_transformer.hpp
+0
-0
ndarray.cpp
graveyard/src/transformers/ndarray.cpp
+0
-0
ndarray.hpp
graveyard/src/transformers/ndarray.hpp
+0
-0
op_graph.cpp
graveyard/src/transformers/op_graph.cpp
+0
-0
op_graph.hpp
graveyard/src/transformers/op_graph.hpp
+0
-0
axes.cpp
graveyard/test/axes.cpp
+0
-0
exop.cpp
graveyard/test/exop.cpp
+0
-0
names.cpp
graveyard/test/names.cpp
+0
-0
op_graph.cpp
graveyard/test/op_graph.cpp
+0
-0
strides.cpp
graveyard/test/strides.cpp
+0
-0
CMakeLists.txt
src/CMakeLists.txt
+0
-17
CMakeLists.txt
test/CMakeLists.txt
+0
-5
build_graph.cpp
test/build_graph.cpp
+18
-18
No files found.
src/names.cpp
→
graveyard/
src/names.cpp
View file @
c1806e85
File moved
src/names.hpp
→
graveyard/
src/names.hpp
View file @
c1806e85
File moved
src/strides.cpp
→
graveyard/
src/strides.cpp
View file @
c1806e85
File moved
src/strides.hpp
→
graveyard/
src/strides.hpp
View file @
c1806e85
File moved
src/transformers/axes.cpp
→
graveyard/
src/transformers/axes.cpp
View file @
c1806e85
File moved
src/transformers/axes.hpp
→
graveyard/
src/transformers/axes.hpp
View file @
c1806e85
File moved
src/transformers/exop.cpp
→
graveyard/
src/transformers/exop.cpp
View file @
c1806e85
File moved
src/transformers/exop.hpp
→
graveyard/
src/transformers/exop.hpp
View file @
c1806e85
File moved
src/transformers/mock.hpp
→
graveyard/
src/transformers/mock.hpp
View file @
c1806e85
File moved
src/transformers/mock_transformer.cpp
→
graveyard/
src/transformers/mock_transformer.cpp
View file @
c1806e85
File moved
src/transformers/mock_transformer.hpp
→
graveyard/
src/transformers/mock_transformer.hpp
View file @
c1806e85
File moved
src/transformers/ndarray.cpp
→
graveyard/
src/transformers/ndarray.cpp
View file @
c1806e85
File moved
src/transformers/ndarray.hpp
→
graveyard/
src/transformers/ndarray.hpp
View file @
c1806e85
File moved
src/transformers/op_graph.cpp
→
graveyard/
src/transformers/op_graph.cpp
View file @
c1806e85
File moved
src/transformers/op_graph.hpp
→
graveyard/
src/transformers/op_graph.hpp
View file @
c1806e85
File moved
test/axes.cpp
→
graveyard/
test/axes.cpp
View file @
c1806e85
File moved
test/exop.cpp
→
graveyard/
test/exop.cpp
View file @
c1806e85
File moved
test/names.cpp
→
graveyard/
test/names.cpp
View file @
c1806e85
File moved
test/op_graph.cpp
→
graveyard/
test/op_graph.cpp
View file @
c1806e85
File moved
test/strides.cpp
→
graveyard/
test/strides.cpp
View file @
c1806e85
File moved
src/CMakeLists.txt
View file @
c1806e85
...
...
@@ -16,18 +16,9 @@ set(NGRAPH_INCLUDE_DIR "${NGRAPH_INCLUDE_DIR}" PARENT_SCOPE)
set
(
SRC
element_type.cpp
names.cpp
strides.cpp
tree.cpp
util.cpp
log.cpp
transformers/axes.cpp
transformers/exop.cpp
transformers/mock_transformer.cpp
transformers/ndarray.cpp
transformers/op_graph.cpp
values/function.cpp
values/op.cpp
)
...
...
@@ -49,20 +40,12 @@ add_library(ngraph SHARED ${SRC})
set
(
DEPLOY_SRC_HEADERS
element_type.hpp
names.hpp
strides.hpp
tree.hpp
util.hpp
uuid.hpp
)
set
(
DEPLOY_SRC_TRANSFORMERS_HEADERS
transformers/axes.hpp
transformers/exop.hpp
transformers/mock.hpp
transformers/mock_transformer.hpp
transformers/ndarray.hpp
transformers/op_graph.hpp
)
install
(
TARGETS ngraph DESTINATION lib
)
...
...
test/CMakeLists.txt
View file @
c1806e85
...
...
@@ -25,13 +25,8 @@ set (SRC
build_graph.cpp
util.cpp
tensor.cpp
exop.cpp
axes.cpp
element_type.cpp
op_graph.cpp
uuid.cpp
names.cpp
strides.cpp
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11"
)
...
...
test/build_graph.cpp
View file @
c1806e85
...
...
@@ -22,23 +22,23 @@ using namespace ngraph;
TEST
(
graph
,
build_simple
)
{
// Function with 4 parameters
auto
cluster_0
=
make_shared
<
Function
>
(
4
);
cluster_0
->
result
()
->
type
(
element_type_float
,
Shape
{
32
,
3
});
cluster_0
->
parameter
(
0
)
->
type
(
element_type_float
,
Shape
{
Shape
{
7
,
3
}});
cluster_0
->
parameter
(
1
)
->
type
(
element_type_float
,
Shape
{
Shape
{
3
}});
cluster_0
->
parameter
(
2
)
->
type
(
element_type_float
,
Shape
{
Shape
{
32
,
7
}});
cluster_0
->
parameter
(
3
)
->
type
(
element_type_float
,
Shape
{
Shape
{
32
,
7
}});
auto
arg3
=
cluster_0
->
parameter
(
3
);
// call broadcast op on arg3, broadcasting on axis 1.
auto
broadcast_1
=
op
::
broadcast
(
arg3
,
1
);
auto
arg2
=
cluster_0
->
parameter
(
2
);
auto
arg0
=
cluster_0
->
parameter
(
0
);
// call dot op
auto
dot
=
op
::
dot
(
arg2
,
arg0
);
ASSERT_EQ
(
dot
->
dependents
()[
0
],
arg2
);
// Function returns tuple of dot and broadcast_1.
cluster_0
->
result
()
->
value
(
dot
);
//
//
Function with 4 parameters
//
auto cluster_0 = make_shared<Function>(4);
//
cluster_0->result()->type(element_type_float, Shape {32, 3});
//
cluster_0->parameter(0)->type(element_type_float, Shape {Shape {7, 3}});
//
cluster_0->parameter(1)->type(element_type_float, Shape {Shape {3}});
//
cluster_0->parameter(2)->type(element_type_float, Shape {Shape {32, 7}});
//
cluster_0->parameter(3)->type(element_type_float, Shape {Shape {32, 7}});
//
auto arg3 = cluster_0->parameter(3);
//
//
call broadcast op on arg3, broadcasting on axis 1.
//
auto broadcast_1 = op::broadcast(arg3, 1);
//
auto arg2 = cluster_0->parameter(2);
//
auto arg0 = cluster_0->parameter(0);
//
//
call dot op
//
auto dot = op::dot(arg2, arg0);
//
ASSERT_EQ(dot->dependents()[0], arg2);
//
//
Function returns tuple of dot and broadcast_1.
//
cluster_0->result()->value(dot);
ASSERT_EQ
(
cluster_0
->
result
()
->
value
(),
dot
);
//
ASSERT_EQ(cluster_0->result()->value(), dot);
}
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