Commit 3628df8c authored by Khalique Ahmed's avatar Khalique Ahmed
Browse files

skip adding contiguous for scalars

parent 8b28251b
......@@ -68,9 +68,9 @@ void auto_contiguous::apply(module& m) const
auto new_args = args;
std::transform(args.begin(), args.end(), new_args.begin(), [&](auto in) {
if(in->name() == "contiguous" or in->name() == "layout")
{
return in;
}
if(in->name() == "@literal" and in->get_shape().standard())
return in;
return m.insert_instruction(ins, make_op("contiguous"), in);
});
......
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