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
c8609f3a
Commit
c8609f3a
authored
Apr 16, 2019
by
Robert Kimball
Committed by
Scott Cyphers
Apr 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix windows warnings (#2767)
parent
2223257c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
backend_broadcast.in.cpp
test/backend_broadcast.in.cpp
+1
-1
backend_reshape.in.cpp
test/backend_reshape.in.cpp
+9
-9
backend_sum.in.cpp
test/backend_sum.in.cpp
+1
-1
No files found.
test/backend_broadcast.in.cpp
View file @
c8609f3a
...
...
@@ -252,7 +252,7 @@ static void broadcast_test_helper(const Shape& shape_a, const Shape& shape_r, co
auto
A
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape_a
);
vector
<
float
>
inp_data
(
shape_size
<
const
Shape
>
(
shape_a
));
iota
(
inp_data
.
begin
(),
inp_data
.
end
(),
1
);
iota
(
inp_data
.
begin
(),
inp_data
.
end
(),
1
.
f
);
auto
f
=
make_shared
<
Function
>
(
make_shared
<
op
::
Broadcast
>
(
A
,
shape_r
,
axis
),
ParameterVector
{
A
});
...
...
test/backend_reshape.in.cpp
View file @
c8609f3a
...
...
@@ -276,7 +276,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_021)
auto
f
=
make_shared
<
Function
>
(
r
,
ParameterVector
{
A
});
vector
<
float
>
a_data
(
shape_size
(
shape_a
));
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
);
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
.
f
);
auto
backend
=
runtime
::
Backend
::
create
(
"${BACKEND_NAME}"
);
...
...
@@ -302,7 +302,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_210)
auto
f
=
make_shared
<
Function
>
(
r
,
ParameterVector
{
A
});
vector
<
float
>
a_data
(
shape_size
(
shape_a
));
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
);
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
.
f
);
auto
backend
=
runtime
::
Backend
::
create
(
"${BACKEND_NAME}"
);
...
...
@@ -328,7 +328,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_201)
auto
f
=
make_shared
<
Function
>
(
r
,
ParameterVector
{
A
});
vector
<
float
>
a_data
(
shape_size
(
shape_a
));
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
);
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
.
f
);
auto
backend
=
runtime
::
Backend
::
create
(
"${BACKEND_NAME}"
);
...
...
@@ -354,7 +354,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_102)
auto
f
=
make_shared
<
Function
>
(
r
,
ParameterVector
{
A
});
vector
<
float
>
a_data
(
shape_size
(
shape_a
));
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
);
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
.
f
);
auto
backend
=
runtime
::
Backend
::
create
(
"${BACKEND_NAME}"
);
...
...
@@ -380,7 +380,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_3d_transpose_120)
auto
f
=
make_shared
<
Function
>
(
r
,
ParameterVector
{
A
});
vector
<
float
>
a_data
(
shape_size
(
shape_a
));
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
);
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
.
f
);
auto
backend
=
runtime
::
Backend
::
create
(
"${BACKEND_NAME}"
);
...
...
@@ -406,7 +406,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_4d_transpose)
auto
f
=
make_shared
<
Function
>
(
r
,
ParameterVector
{
A
});
vector
<
float
>
a_data
(
shape_size
(
shape_a
));
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
);
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
.
f
);
auto
backend
=
runtime
::
Backend
::
create
(
"${BACKEND_NAME}"
);
...
...
@@ -438,7 +438,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_4d_no_transpose)
auto
f
=
make_shared
<
Function
>
(
r
,
ParameterVector
{
A
});
vector
<
float
>
a_data
(
shape_size
(
shape_a
));
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
);
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
.
f
);
auto
backend
=
runtime
::
Backend
::
create
(
"${BACKEND_NAME}"
);
...
...
@@ -522,7 +522,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_6d)
Shape
shape_r
{
3
,
2
,
2
,
4
,
3
,
2
};
vector
<
float
>
a_data
(
shape_size
(
shape_a
));
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
);
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
.
f
);
auto
r
=
make_shared
<
op
::
Reshape
>
(
A
,
AxisVector
{
2
,
4
,
0
,
5
,
3
,
1
},
shape_r
);
auto
f
=
make_shared
<
Function
>
(
r
,
ParameterVector
{
A
});
...
...
@@ -577,7 +577,7 @@ NGRAPH_TEST(${BACKEND_NAME}, reshape_shufflenet_5d)
Shape
shape_r
{
1
,
112
,
56
,
56
};
vector
<
float
>
a_data
(
shape_size
(
shape_a
));
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
);
iota
(
a_data
.
begin
(),
a_data
.
end
(),
1
.
f
);
auto
r0
=
make_shared
<
op
::
Reshape
>
(
A
,
AxisVector
{
0
,
1
,
2
,
3
},
shape_b
);
auto
r1
=
make_shared
<
op
::
Reshape
>
(
r0
,
AxisVector
{
0
,
2
,
1
,
3
,
4
},
shape_c
);
...
...
test/backend_sum.in.cpp
View file @
c8609f3a
...
...
@@ -168,7 +168,7 @@ NGRAPH_TEST(${BACKEND_NAME}, sum_matrix_6d)
auto
result_ref
=
backend_ref
->
create_tensor
(
element
::
f32
,
shape_rt
);
vector
<
float
>
inp_data
(
shape_size
<
const
Shape
>
(
shape_a
));
iota
(
inp_data
.
begin
(),
inp_data
.
end
(),
1
);
iota
(
inp_data
.
begin
(),
inp_data
.
end
(),
1
.
f
);
copy_data
(
a_wrk
,
inp_data
);
copy_data
(
a_ref
,
inp_data
);
...
...
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