#include #include #include #include #include namespace migraph { inline namespace MIGRAPH_INLINE_NS { void auto_contiguous::apply(program& p) const { for(auto ins : iterator_for(p)) { shape s = ins->get_shape(); if(not s.standard()) { auto c = p.insert_instruction(std::next(ins), op::contiguous{}, ins); p.replace_instruction(ins, c); } } } } // namespace MIGRAPH_INLINE_NS } // namespace migraph