提交 032d1dc1 编写于 作者: M Megvii Engine Team 提交者: Wanwan1996

fix(fastrun): reset valid layout when no_profiling_on_shape_change

GitOrigin-RevId: 4695f610baaccf6466e0761381b1d02294e330e4
上级 ea8b9a9b
...@@ -512,8 +512,8 @@ AlgoChooser<Opr>::AlgoChooserHelper::AlgoChooserHelper( ...@@ -512,8 +512,8 @@ AlgoChooser<Opr>::AlgoChooserHelper::AlgoChooserHelper(
for (size_t i = 0; i < m_incache_layouts.size(); i++) { for (size_t i = 0; i < m_incache_layouts.size(); i++) {
for (size_t j = 0; j < m_incache_layouts.at(i).ndim; j++) { 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)[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.
先完成此消息的编辑!
想要评论请 注册