From 2855c4e553753e30bd772c16d08704e310f692bf Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Thu, 5 Jan 2023 13:26:53 +0800 Subject: [PATCH] fix(fastrun): reset valid layout when no_profiling_on_shape_change GitOrigin-RevId: 4695f610baaccf6466e0761381b1d02294e330e4 --- src/rdnn/impl/algo_chooser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rdnn/impl/algo_chooser.cpp b/src/rdnn/impl/algo_chooser.cpp index 8bc26fb47..3613815f4 100644 --- a/src/rdnn/impl/algo_chooser.cpp +++ b/src/rdnn/impl/algo_chooser.cpp @@ -512,8 +512,8 @@ AlgoChooser::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(); } } -- GitLab