"vscode:/vscode.git/clone" did not exist on "a5d614de825e75f4557f18e8516216b7d0290c0d"
Commit d0feb6b4 authored by Paul's avatar Paul
Browse files

Formatting

parent c83ee9f8
...@@ -9,7 +9,7 @@ namespace migraphx { ...@@ -9,7 +9,7 @@ namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS { inline namespace MIGRAPHX_INLINE_NS {
struct module; struct module;
using module_ref = module*; using module_ref = module*;
using const_module_ref = const module*; using const_module_ref = const module*;
} // namespace MIGRAPHX_INLINE_NS } // namespace MIGRAPHX_INLINE_NS
......
...@@ -309,8 +309,10 @@ instruction_ref module::move_instructions(instruction_ref src, instruction_ref d ...@@ -309,8 +309,10 @@ instruction_ref module::move_instructions(instruction_ref src, instruction_ref d
return src; return src;
} }
std::vector<instruction_ref> module::insert_module_instructions( std::vector<instruction_ref>
instruction_ref ins, const_module_ref m, std::unordered_map<instruction_ref, instruction_ref> map_ins) module::insert_module_instructions(instruction_ref ins,
const_module_ref m,
std::unordered_map<instruction_ref, instruction_ref> map_ins)
{ {
std::vector<instruction_ref> mod_outputs; std::vector<instruction_ref> mod_outputs;
for(auto sins : iterator_for(*m)) for(auto sins : iterator_for(*m))
......
...@@ -36,7 +36,7 @@ std::string encode(std::string s) ...@@ -36,7 +36,7 @@ std::string encode(std::string s)
migraphx::program create_program_from_mlir(const migraphx::module& mmlir) migraphx::program create_program_from_mlir(const migraphx::module& mmlir)
{ {
migraphx::program p; migraphx::program p;
auto* mm = p.get_main_module(); auto* mm = p.get_main_module();
auto names = mmlir.get_parameter_names(); auto names = mmlir.get_parameter_names();
std::vector<migraphx::instruction_ref> inputs; std::vector<migraphx::instruction_ref> inputs;
std::transform(names.begin(), names.end(), std::back_inserter(inputs), [&](const auto& name) { std::transform(names.begin(), names.end(), std::back_inserter(inputs), [&](const auto& name) {
......
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