Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
413036a1
Commit
413036a1
authored
Jul 12, 2019
by
Shucai Xiao
Browse files
merge changes from develop branch
parents
f06f6aa3
a96d3a95
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
test/tf/expanddims_test.pb
test/tf/expanddims_test.pb
+0
-0
test/tf/tf_test.cpp
test/tf/tf_test.cpp
+25
-0
No files found.
test/tf/expanddims_test.pb
0 → 100644
View file @
413036a1
File added
test/tf/tf_test.cpp
View file @
413036a1
...
...
@@ -159,6 +159,31 @@ TEST_CASE(depthwiseconv_test)
EXPECT
(
p
==
prog
);
}
TEST_CASE
(
expanddims_test
)
{
migraphx
::
program
p
;
auto
l0
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
2
,
3
,
4
}});
p
.
add_literal
(
0
);
p
.
add_instruction
(
migraphx
::
op
::
reshape
{{
1
,
2
,
3
,
4
}},
l0
);
auto
prog
=
optimize_tf
(
"expanddims_test.pb"
,
false
);
EXPECT
(
p
==
prog
);
}
TEST_CASE
(
expanddims_test_neg_dims
)
{
// this check makes sure the pb parses negative dim value correctly
migraphx
::
program
p
;
auto
l0
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
2
,
3
,
4
}});
p
.
add_literal
(
-
1
);
p
.
add_instruction
(
migraphx
::
op
::
reshape
{{
2
,
3
,
4
,
1
}},
l0
);
auto
prog
=
optimize_tf
(
"expanddims_neg_test.pb"
,
false
);
EXPECT
(
p
==
prog
);
}
TEST_CASE
(
identity_test
)
{
migraphx
::
program
p
;
...
...
Prev
1
2
Next
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