Commit d817ff5b authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format.

parent 3af8d2e9
...@@ -211,27 +211,27 @@ struct miopen_apply ...@@ -211,27 +211,27 @@ struct miopen_apply
template <class T, class Op> template <class T, class Op>
instruction_ref apply_extend_op(instruction_ref ins) instruction_ref apply_extend_op(instruction_ref ins)
{ {
auto&& op = any_cast<Op>(ins->get_operator()); auto&& op = any_cast<Op>(ins->get_operator());
auto output = insert_allocation(ins, ins->get_shape()); auto output = insert_allocation(ins, ins->get_shape());
std::vector<instruction_ref> refs = ins->inputs(); std::vector<instruction_ref> refs = ins->inputs();
refs.push_back(output); refs.push_back(output);
return prog->replace_instruction(ins, T{op}, refs); return prog->replace_instruction(ins, T{op}, refs);
} }
/* /*
template<class T> template<class T>
void apply_generic_op_test(std::string name, instruction_ref ins) void apply_generic_op_test(std::string name, instruction_ref ins)
{ {
apply_map.emplace(name, [&]() { apply_map.emplace(name, [&]() {
auto output = insert_allocation(ins, ins->get_shape()); auto output = insert_allocation(ins, ins->get_shape());
std::vector<instruction_ref> refs = ins->inputs(); std::vector<instruction_ref> refs = ins->inputs();
refs.push_back(output); refs.push_back(output);
return prog->replace_instruction(ins, T{}, refs); return prog->replace_instruction(ins, T{}, refs);
}); });
} }
*/ */
instruction_ref apply_contiguous(instruction_ref ins) instruction_ref apply_contiguous(instruction_ref ins)
{ {
......
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