"...composable_kernel_rocm.git" did not exist on "cb95421311dfc625edf5e0c59aa243aac1b00268"
Commit d6d386f7 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format of changed files.

parent 7f9d85cc
...@@ -20,5 +20,5 @@ void auto_contiguous::apply(program& p) const ...@@ -20,5 +20,5 @@ void auto_contiguous::apply(program& p) const
} }
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -35,5 +35,5 @@ void cse_range(program& p, Range&& r) ...@@ -35,5 +35,5 @@ void cse_range(program& p, Range&& r)
void common_subexpression_elimination::apply(program& p) const { cse_range(p, iterator_for(p)); } void common_subexpression_elimination::apply(program& p) const { cse_range(p, iterator_for(p)); }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -26,5 +26,5 @@ struct match_const_add ...@@ -26,5 +26,5 @@ struct match_const_add
void constant_propagate::apply(program& p) const { match::find_matches(p, match_const_add{}); } void constant_propagate::apply(program& p) const { match::find_matches(p, match_const_add{}); }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -62,5 +62,5 @@ void dead_code_elimination::apply(program& p) const ...@@ -62,5 +62,5 @@ void dead_code_elimination::apply(program& p) const
p.remove_instructions(std::next(last), p.end()); p.remove_instructions(std::next(last), p.end());
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -37,5 +37,5 @@ void eliminate_allocation::apply(program& p) const ...@@ -37,5 +37,5 @@ void eliminate_allocation::apply(program& p) const
} }
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -47,5 +47,5 @@ void eliminate_contiguous::apply(program& p) const ...@@ -47,5 +47,5 @@ void eliminate_contiguous::apply(program& p) const
} }
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -30,5 +30,5 @@ std::vector<std::string> env(const char* name) ...@@ -30,5 +30,5 @@ std::vector<std::string> env(const char* name)
return {{p}}; return {{p}};
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -67,5 +67,5 @@ void fwd_conv_batchnorm_rewrite::apply(program& p) const ...@@ -67,5 +67,5 @@ void fwd_conv_batchnorm_rewrite::apply(program& p) const
} }
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -31,5 +31,5 @@ literal abs(literal l) ...@@ -31,5 +31,5 @@ literal abs(literal l)
return transform(std::move(l), [](auto x) { return std::fabs(x); }); return transform(std::move(l), [](auto x) { return std::fabs(x); });
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -183,5 +183,5 @@ shape compute_shape(const operation& op, const std::vector<instruction_ref>& arg ...@@ -183,5 +183,5 @@ shape compute_shape(const operation& op, const std::vector<instruction_ref>& arg
return op.compute_shape(compute_shapes(args)); return op.compute_shape(compute_shapes(args));
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -626,5 +626,5 @@ program parse_onnx(const std::string& name) ...@@ -626,5 +626,5 @@ program parse_onnx(const std::string& name)
return std::move(parser.prog); return std::move(parser.prog);
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -13,5 +13,5 @@ void memory_coloring::apply(program& p) const ...@@ -13,5 +13,5 @@ void memory_coloring::apply(program& p) const
} }
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -358,5 +358,5 @@ void live_interval::dump() ...@@ -358,5 +358,5 @@ void live_interval::dump()
#endif #endif
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -500,5 +500,5 @@ std::ostream& operator<<(std::ostream& os, const program& p) ...@@ -500,5 +500,5 @@ std::ostream& operator<<(std::ostream& os, const program& p)
return os; return os;
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -191,5 +191,5 @@ std::ostream& operator<<(std::ostream& os, const shape& x) ...@@ -191,5 +191,5 @@ std::ostream& operator<<(std::ostream& os, const shape& x)
return os; return os;
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -61,5 +61,5 @@ struct find_add_lit_broadcast ...@@ -61,5 +61,5 @@ struct find_add_lit_broadcast
void simplify_algebra::apply(program& p) const { match::find_matches(p, find_add_lit_broadcast{}); } void simplify_algebra::apply(program& p) const { match::find_matches(p, find_add_lit_broadcast{}); }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -60,5 +60,5 @@ void simplify_reshapes::apply(program& p) const ...@@ -60,5 +60,5 @@ void simplify_reshapes::apply(program& p) const
} }
} }
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -94,5 +94,5 @@ void migemm( ...@@ -94,5 +94,5 @@ void migemm(
} }
} // namespace cpu } // namespace cpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -658,5 +658,5 @@ struct cpu_apply ...@@ -658,5 +658,5 @@ struct cpu_apply
void lowering::apply(program& p) const { cpu_apply{&p}.apply(); } void lowering::apply(program& p) const { cpu_apply{&p}.apply(); }
} // namespace cpu } // namespace cpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
...@@ -15,5 +15,5 @@ std::vector<pass> target::get_passes(migraph::context&) const ...@@ -15,5 +15,5 @@ std::vector<pass> target::get_passes(migraph::context&) const
} }
} // namespace cpu } // namespace cpu
} // inline namespace MIGRAPH_INLINE_NS } // namespace MIGRAPH_INLINE_NS
} // namespace migraph } // namespace migraph
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