Commit 7e3444ce authored by Umang Yadav's avatar Umang Yadav
Browse files

tidy fixes

parent f550f814
......@@ -35,11 +35,11 @@ struct test_acosh : verify_program<test_acosh<CType>>
{
migraphx::program p;
auto* mm = p.get_main_module();
migraphx::shape::type_t DType = migraphx::shape::get_type<CType>();
migraphx::shape s{DType, {16}};
migraphx::shape::type_t dtype = migraphx::shape::get_type<CType>();
migraphx::shape s{dtype, {16}};
auto x = mm->add_parameter("x", s);
auto min_val = mm->add_literal(migraphx::literal{migraphx::shape{DType}, {1.1}});
auto max_val = mm->add_literal(migraphx::literal{migraphx::shape{DType}, {100.0}});
auto min_val = mm->add_literal(migraphx::literal{migraphx::shape{dtype}, {1.1}});
auto max_val = mm->add_literal(migraphx::literal{migraphx::shape{dtype}, {100.0}});
min_val =
mm->add_instruction(migraphx::make_op("multibroadcast", {{"out_lens", {16}}}), min_val);
max_val =
......
......@@ -36,11 +36,11 @@ struct test_atanh : verify_program<test_atanh<CType>>
{
migraphx::program p;
auto* mm = p.get_main_module();
migraphx::shape::type_t DType = migraphx::shape::get_type<CType>();
migraphx::shape s{DType, {16}};
migraphx::shape::type_t dtype = migraphx::shape::get_type<CType>();
migraphx::shape s{dtype, {16}};
auto x = mm->add_parameter("x", s);
auto min_val = mm->add_literal(migraphx::literal{migraphx::shape{DType}, {-0.95f}});
auto max_val = mm->add_literal(migraphx::literal{migraphx::shape{DType}, {0.95f}});
auto min_val = mm->add_literal(migraphx::literal{migraphx::shape{dtype}, {-0.95f}});
auto max_val = mm->add_literal(migraphx::literal{migraphx::shape{dtype}, {0.95f}});
min_val =
mm->add_instruction(migraphx::make_op("multibroadcast", {{"out_lens", {16}}}), min_val);
max_val =
......
......@@ -33,9 +33,9 @@ struct test_pow : verify_program<test_pow<CType>>
migraphx::program create_program() const
{
migraphx::program p;
migraphx::shape::type_t DType = migraphx::shape::get_type<CType>();
migraphx::shape::type_t dtype = migraphx::shape::get_type<CType>();
auto* mm = p.get_main_module();
migraphx::shape s{DType, {6}};
migraphx::shape s{dtype, {6}};
std::vector<float> vec_e(s.elements(), 2.0f);
auto b = mm->add_parameter("x", s);
auto e = mm->add_literal(migraphx::literal(s, vec_e));
......
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