Commit 46cdc2f1 authored by Khalique's avatar Khalique
Browse files

formatting

parent 00b0396b
...@@ -590,9 +590,9 @@ struct tf_parser ...@@ -590,9 +590,9 @@ struct tf_parser
instruction_ref instruction_ref
parse_mean(const std::string&, attribute_map attributes, std::vector<instruction_ref> args) parse_mean(const std::string&, attribute_map attributes, std::vector<instruction_ref> args)
{ {
bool keep_dims = attributes.at("keep_dims").b(); bool keep_dims = attributes.at("keep_dims").b();
auto lens = args[0]->get_shape().lens(); auto lens = args[0]->get_shape().lens();
auto axes = args[1]->eval().get<int32_t>().to_vector<int64_t>(); auto axes = args[1]->eval().get<int32_t>().to_vector<int64_t>();
if(keep_dims) if(keep_dims)
{ {
......
...@@ -271,7 +271,7 @@ TEST_CASE(mean_test_nhwc) ...@@ -271,7 +271,7 @@ TEST_CASE(mean_test_nhwc)
migraphx::program p; migraphx::program p;
migraphx::literal l{migraphx::shape{migraphx::shape::int32_type, {2}}, {1, 2}}; migraphx::literal l{migraphx::shape{migraphx::shape::int32_type, {2}}, {1, 2}};
auto l0 = p.add_parameter("0", migraphx::shape{migraphx::shape::float_type, {1, 3, 16, 16}}); auto l0 = p.add_parameter("0", migraphx::shape{migraphx::shape::float_type, {1, 3, 16, 16}});
auto l1 = p.add_instruction(migraphx::op::transpose{{0,2,3,1}}, l0); auto l1 = p.add_instruction(migraphx::op::transpose{{0, 2, 3, 1}}, l0);
migraphx::op::reduce_mean op{{1, 2}}; migraphx::op::reduce_mean op{{1, 2}};
auto l2 = p.add_instruction(op, l1); auto l2 = p.add_instruction(op, l1);
p.add_instruction(migraphx::op::squeeze{{1, 2}}, l2); p.add_instruction(migraphx::op::squeeze{{1, 2}}, l2);
......
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