Commit 27e52102 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

Add the test example for sin operator.

parent 2f543d8e
...@@ -203,6 +203,18 @@ struct test_mul ...@@ -203,6 +203,18 @@ struct test_mul
} }
}; };
struct test_sin
{
migraphx::program create_program() const
{
migraphx::program p;
migraphx::shape s{migraphx::shape::float_type, {10}};
auto x = p.add_parameter("x", s);
p.add_instruction(migraphx::op::sin{}, x);
return p;
}
};
struct test_scale struct test_scale
{ {
migraphx::program create_program() const migraphx::program create_program() const
...@@ -843,6 +855,7 @@ int main() ...@@ -843,6 +855,7 @@ int main()
verify_program<test_add>(); verify_program<test_add>();
verify_program<test_add_half>(); verify_program<test_add_half>();
verify_program<test_mul>(); verify_program<test_mul>();
verify_program<test_sin>();
verify_program<test_scale>(); verify_program<test_scale>();
verify_program<test_triadd>(); verify_program<test_triadd>();
verify_program<test_triadd2>(); verify_program<test_triadd2>();
......
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