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
e8538ba0
Commit
e8538ba0
authored
Feb 26, 2019
by
Tomasz Dołbniak
Committed by
Scott Cyphers
Feb 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ONNX] Fix the global alias shadowing warning (#2497)
parent
521e31fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
onnx_import.in.cpp
test/onnx_import.in.cpp
+3
-6
No files found.
test/onnx_import.in.cpp
View file @
e8538ba0
...
...
@@ -2005,9 +2005,6 @@ TEST(onnx_${BACKEND_NAME}, model_where)
auto
function
=
onnx_import
::
import_onnx_model
(
file_util
::
path_join
(
SERIALIZED_ZOO
,
"onnx/where.onnx"
));
using
Inputs
=
std
::
vector
<
std
::
vector
<
int
>>
;
using
Outputs
=
std
::
vector
<
std
::
vector
<
int
>>
;
// conditions tensor - 3x3x3
auto
condition
=
std
::
vector
<
int
>
{
{
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,
0
,
1
,
0
,
1
,
0
,
1
,
0
,
1
,
0
}};
...
...
@@ -2017,16 +2014,16 @@ TEST(onnx_${BACKEND_NAME}, model_where)
// 3x1 tensor of "2"
auto
x2
=
std
::
vector
<
int
>
{
2
,
2
,
2
};
Inputs
inputs
;
std
::
vector
<
std
::
vector
<
int
>>
inputs
;
inputs
.
push_back
(
std
::
move
(
condition
));
inputs
.
push_back
(
std
::
move
(
x1
));
inputs
.
push_back
(
std
::
move
(
x2
));
// y = 3x3x3
Outputs
expected_outputs
{
std
::
vector
<
std
::
vector
<
int
>>
expected_outputs
{
{
2
,
1
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,
1
,
2
}};
Outputs
outputs
{
execute
(
function
,
inputs
,
"${BACKEND_NAME}"
)};
std
::
vector
<
std
::
vector
<
int
>>
outputs
{
execute
(
function
,
inputs
,
"${BACKEND_NAME}"
)};
EXPECT_EQ
(
expected_outputs
.
front
(),
outputs
.
front
());
}
...
...
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