提交 91675a71 编写于 作者: M Megvii Engine Team

fix(mgb): change span-too-large warning to debug level

GitOrigin-RevId: b69e0ba6f38e0fca8eb7af471a0543317d86e81b
上级 7b34936a
......@@ -354,7 +354,7 @@ MGB_DEFINE_CLS_WITH_SUPER(StaticInferManagerImpl::TagShapeTrait final,
MGB_DEFINE_CLS_WITH_SUPER(StaticInferManagerImpl::TagValueTrait final,
TagTraitMutableBase) // {
bool m_warn_printed = false;
bool m_log_printed = false;
//!< used for detection src value change
TensorLayout m_prev_layout;
......@@ -749,13 +749,13 @@ StaticInferManagerImpl::TagValueTrait::update_value() {
auto span = m_cur_value.layout().span();
if (span.dist_elem() >= INFER_VALUE_SIZE_THRESH_FOR_WARNING &&
!m_warn_printed) {
mgb_log_warn(
!m_log_printed) {
mgb_log_debug(
"compute static_infer_value() for %s: "
"span dist too large (%zu)",
cg::dump_var_info({tag()}).c_str(),
span.dist_byte());
m_warn_printed = true;
m_log_printed = true;
}
// check value change for src nodes and small mid nodes
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册