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
790dcd6c
Commit
790dcd6c
authored
Feb 21, 2018
by
fenglei.tian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update test and cmake
parent
d94a25f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
CMakeLists.txt
src/ngraph/CMakeLists.txt
+2
-2
autodiff.in.cpp
test/autodiff.in.cpp
+1
-0
backend_test.in.cpp
test/backend_test.in.cpp
+5
-0
No files found.
src/ngraph/CMakeLists.txt
View file @
790dcd6c
...
@@ -217,8 +217,8 @@ if(NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH)
...
@@ -217,8 +217,8 @@ if(NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH)
set
(
SRC
${
SRC
}
set
(
SRC
${
SRC
}
ops/allreduce.cpp
ops/allreduce.cpp
)
)
set
_property
(
SOURCE codegen/compiler.cpp APPEND PROPERTY COMPILE_DEFINITIONS
set
(
HEADER_SEARCH_DEFINES
${
HEADER_SEARCH_DEFINES
}
"MPI_HEADER_PATH
=
\"
${
MPI_C_INCLUDE_PATH
}
\"
;"
)
"MPI_HEADER_PATH
S=
\"
${
MPI_C_INCLUE_PATH
}
\"
"
endif
()
endif
()
# GPU backend current requires CPU because they share compiler.cpp,
# GPU backend current requires CPU because they share compiler.cpp,
...
...
test/autodiff.in.cpp
View file @
790dcd6c
...
@@ -1035,6 +1035,7 @@ TEST(${BACKEND_NAME}, backwards_power)
...
@@ -1035,6 +1035,7 @@ TEST(${BACKEND_NAME}, backwards_power)
TEST
(
$
{
BACKEND_NAME
},
backwards_relu
)
TEST
(
$
{
BACKEND_NAME
},
backwards_relu
)
{
{
SKIP_TEST_FOR
(
"GPU"
,
"${BACKEND_NAME}"
);
auto
manager
=
runtime
::
Manager
::
get
(
"${BACKEND_NAME}"
);
auto
manager
=
runtime
::
Manager
::
get
(
"${BACKEND_NAME}"
);
auto
backend
=
manager
->
allocate_backend
();
auto
backend
=
manager
->
allocate_backend
();
...
...
test/backend_test.in.cpp
View file @
790dcd6c
...
@@ -7944,6 +7944,7 @@ TEST(${BACKEND_NAME}, min_3d_eliminate_zero_dim)
...
@@ -7944,6 +7944,7 @@ TEST(${BACKEND_NAME}, min_3d_eliminate_zero_dim)
TEST
(
$
{
BACKEND_NAME
},
relu_2Dfprop
)
TEST
(
$
{
BACKEND_NAME
},
relu_2Dfprop
)
{
{
SKIP_TEST_FOR
(
"GPU"
,
"${BACKEND_NAME}"
);
auto
shape_a
=
Shape
{
2
,
5
};
auto
shape_a
=
Shape
{
2
,
5
};
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
relu
=
make_shared
<
op
::
Relu
>
(
A
);
auto
relu
=
make_shared
<
op
::
Relu
>
(
A
);
...
@@ -7966,6 +7967,7 @@ TEST(${BACKEND_NAME}, relu_2Dfprop)
...
@@ -7966,6 +7967,7 @@ TEST(${BACKEND_NAME}, relu_2Dfprop)
TEST
(
$
{
BACKEND_NAME
},
relu_4Dfprop
)
TEST
(
$
{
BACKEND_NAME
},
relu_4Dfprop
)
{
{
SKIP_TEST_FOR
(
"GPU"
,
"${BACKEND_NAME}"
);
auto
shape_a
=
Shape
{
2
,
2
,
2
,
2
};
auto
shape_a
=
Shape
{
2
,
2
,
2
,
2
};
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
relu
=
make_shared
<
op
::
Relu
>
(
A
);
auto
relu
=
make_shared
<
op
::
Relu
>
(
A
);
...
@@ -7988,6 +7990,7 @@ TEST(${BACKEND_NAME}, relu_4Dfprop)
...
@@ -7988,6 +7990,7 @@ TEST(${BACKEND_NAME}, relu_4Dfprop)
TEST
(
$
{
BACKEND_NAME
},
fuse_max_with_constant_zero_input_as_relu
)
TEST
(
$
{
BACKEND_NAME
},
fuse_max_with_constant_zero_input_as_relu
)
{
{
SKIP_TEST_FOR
(
"GPU"
,
"${BACKEND_NAME}"
);
auto
shape_a
=
Shape
{
2
,
5
};
auto
shape_a
=
Shape
{
2
,
5
};
auto
A
=
op
::
Constant
::
create
(
element
::
f32
,
shape_a
,
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
});
auto
A
=
op
::
Constant
::
create
(
element
::
f32
,
shape_a
,
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
});
auto
B
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
B
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
...
@@ -8011,6 +8014,7 @@ TEST(${BACKEND_NAME}, fuse_max_with_constant_zero_input_as_relu)
...
@@ -8011,6 +8014,7 @@ TEST(${BACKEND_NAME}, fuse_max_with_constant_zero_input_as_relu)
TEST
(
$
{
BACKEND_NAME
},
relu_2Dbackprop
)
TEST
(
$
{
BACKEND_NAME
},
relu_2Dbackprop
)
{
{
SKIP_TEST_FOR
(
"GPU"
,
"${BACKEND_NAME}"
);
auto
shape_a
=
Shape
{
2
,
5
};
auto
shape_a
=
Shape
{
2
,
5
};
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
delta_val
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
delta_val
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
...
@@ -8036,6 +8040,7 @@ TEST(${BACKEND_NAME}, relu_2Dbackprop)
...
@@ -8036,6 +8040,7 @@ TEST(${BACKEND_NAME}, relu_2Dbackprop)
TEST
(
$
{
BACKEND_NAME
},
relu_4Dbackprop
)
TEST
(
$
{
BACKEND_NAME
},
relu_4Dbackprop
)
{
{
SKIP_TEST_FOR
(
"GPU"
,
"${BACKEND_NAME}"
);
auto
shape_a
=
Shape
{
2
,
2
,
2
,
2
};
auto
shape_a
=
Shape
{
2
,
2
,
2
,
2
};
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
delta_val
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
auto
delta_val
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
...
...
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