Commit 9dcbd52b authored by Paul's avatar Paul
Browse files

Format

parent 4272fff1
......@@ -424,10 +424,10 @@ struct mlir_program
static value get_operator_value(const operation& op)
{
auto v = op.to_value();
if (op.name() == "convolution")
if(op.name() == "convolution")
{
// Adjust symetrical padding
if (v.at("padding").size() == v.at("stride").size())
if(v.at("padding").size() == v.at("stride").size())
{
auto padding = v.at("padding");
std::copy(padding.begin(), padding.end(), std::back_inserter(v.at("padding")));
......
......@@ -109,8 +109,8 @@ module {
}
)__migraphx__";
migraphx::module m;
auto x = m.add_parameter("x", {migraphx::shape::float_type, {1, 8, 4, 4}});
auto w = m.add_parameter("w", {migraphx::shape::float_type, {2, 8, 3, 3}});
auto x = m.add_parameter("x", {migraphx::shape::float_type, {1, 8, 4, 4}});
auto w = m.add_parameter("w", {migraphx::shape::float_type, {2, 8, 3, 3}});
auto conv = m.add_instruction(migraphx::make_op("convolution"), x, w);
m.add_return({conv});
auto s = migraphx::gpu::dump_mlir(m);
......
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