提交 2855c4e5 编写于 作者: M Megvii Engine Team

fix(fastrun): reset valid layout when no_profiling_on_shape_change

GitOrigin-RevId: 4695f610baaccf6466e0761381b1d02294e330e4
上级 6ae39da4
......@@ -512,8 +512,8 @@ AlgoChooser<Opr>::AlgoChooserHelper::AlgoChooserHelper(
for (size_t i = 0; i < m_incache_layouts.size(); i++) {
for (size_t j = 0; j < m_incache_layouts.at(i).ndim; j++) {
m_incache_layouts.at(i)[j] = 0;
m_incache_layouts.at(i).stride[j] = 0;
}
m_incache_layouts.at(i).init_contiguous_stride();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册