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

Format

parent 9d1f9399
......@@ -89,8 +89,10 @@ struct find_reshaper
auto matcher() const
{
auto no_output_reshape = match::none_of[match::outputs()](match::name(reshaper_names()));
auto input_reshape = match::arg(0)(match::skip(match::name("contiguous"))(match::name(reshaper_names())));
auto input = match::skip(match::name(reshaper_names()), match::name("contiguous"))(match::arg(0).bind("x"));
auto input_reshape =
match::arg(0)(match::skip(match::name("contiguous"))(match::name(reshaper_names())));
auto input = match::skip(match::name(reshaper_names()),
match::name("contiguous"))(match::arg(0).bind("x"));
return match::name(reshaper_names())(no_output_reshape, input_reshape, input);
}
......@@ -100,7 +102,7 @@ struct find_reshaper
auto input = mr.instructions["x"];
auto dims = ins->get_shape().lens();
if (not input->get_shape().standard())
if(not input->get_shape().standard())
input = m.insert_instruction(input, make_op("contiguous"), input);
m.replace_instruction(ins, make_op("reshape", {{"dims", dims}}), input);
}
......
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