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
749d7a85
Commit
749d7a85
authored
Jul 12, 2019
by
Shucai Xiao
Browse files
Merge branch 'develop' of
https://github.com/ROCmSoftwarePlatform/AMDMIGraphX
into op_capture
parents
3e9153de
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 @
749d7a85
File added
test/tf/tf_test.cpp
View file @
749d7a85
...
...
@@ -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