提交 6ab1c55d 编写于 作者: M Megvii Engine Team

fix(mgb): fix fastrun workspace limit

GitOrigin-RevId: b9797eefcff8f970aebd0b6e5a2e44e25fe6b0d4
上级 7af1ec66
......@@ -705,7 +705,7 @@ void AlgoChooser<Opr>::AlgoChooserHelper::profile(
construct_execution_policy(selected_strategy, policy);
mgb_assert(policy.algo.valid(),
"construct execution policy must success when profiling");
if (get_workspace_size_bytes(policy) >= workspace_limit) {
if (get_workspace_size_bytes(policy) > workspace_limit) {
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册