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
d8a2a933
Unverified
Commit
d8a2a933
authored
Aug 23, 2021
by
Shucai Xiao
Committed by
GitHub
Aug 23, 2021
Browse files
add a unit test for broadcasted input to cover unary operators (#917)
parent
d689e2d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
test/op_shape_test.cpp
test/op_shape_test.cpp
+7
-0
No files found.
test/op_shape_test.cpp
View file @
d8a2a933
...
...
@@ -1592,4 +1592,11 @@ TEST_CASE(unary_scalar_input)
expect_shape
(
s
,
migraphx
::
make_op
(
"sin"
),
s
);
}
TEST_CASE
(
unary_broadcast_input
)
{
migraphx
::
shape
ss
{
migraphx
::
shape
::
half_type
,
{
2
,
3
},
{
1
,
0
}};
migraphx
::
shape
s
{
migraphx
::
shape
::
half_type
,
{
2
,
3
}};
expect_shape
(
s
,
migraphx
::
make_op
(
"sin"
),
ss
);
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
test
::
run
(
argc
,
argv
);
}
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