Unverified Commit d8a2a933 authored by Shucai Xiao's avatar Shucai Xiao Committed by GitHub
Browse files

add a unit test for broadcasted input to cover unary operators (#917)

parent d689e2d1
......@@ -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); }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment