"...git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "013adb1f88d3d3a3558c400deffa87c05eb29c20"
Commit 1770a342 authored by Paul's avatar Paul
Browse files

Format

parent aeb60bce
...@@ -178,10 +178,7 @@ struct module ...@@ -178,10 +178,7 @@ struct module
std::unique_ptr<module_impl> impl; std::unique_ptr<module_impl> impl;
}; };
inline module& get_module(module& m) inline module& get_module(module& m) { return m; }
{
return m;
}
} // namespace MIGRAPHX_INLINE_NS } // namespace MIGRAPHX_INLINE_NS
} // namespace migraphx } // namespace migraphx
......
...@@ -65,9 +65,9 @@ struct find_conv_pointwise ...@@ -65,9 +65,9 @@ struct find_conv_pointwise
mm->set_bypass(); mm->set_bypass();
std::unordered_map<instruction_ref, instruction_ref> param_map; std::unordered_map<instruction_ref, instruction_ref> param_map;
auto x = mm->add_parameter("x" + std::to_string(names.size()), auto x = mm->add_parameter("x" + std::to_string(names.size()),
conv_ins->inputs().at(0)->get_shape()); conv_ins->inputs().at(0)->get_shape());
auto w = mm->add_parameter("x" + std::to_string(names.size() + 1), auto w = mm->add_parameter("x" + std::to_string(names.size() + 1),
conv_ins->inputs().at(1)->get_shape()); conv_ins->inputs().at(1)->get_shape());
auto conv = mm->add_instruction(conv_ins->get_operator(), {x, w}); auto conv = mm->add_instruction(conv_ins->get_operator(), {x, w});
std::transform(names.begin(), std::transform(names.begin(),
names.end(), names.end(),
...@@ -93,7 +93,10 @@ struct find_conv_pointwise ...@@ -93,7 +93,10 @@ struct find_conv_pointwise
}; };
} // namespace } // namespace
void fuse_mlir::apply(module_pass_manager& mpm) const { match::find_matches(mpm, find_conv_pointwise{}); } void fuse_mlir::apply(module_pass_manager& mpm) const
{
match::find_matches(mpm, find_conv_pointwise{});
}
} // namespace gpu } // namespace gpu
......
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