提交 298c4443 编写于 作者: M Megvii Engine Team

fix(mge/module): fix mistake warning message of module auto naming

GitOrigin-RevId: 4b85c13e90bfb6703f65ddd85866afa083c2ab52
上级 c54a731b
......@@ -626,7 +626,7 @@ class Module(metaclass=ABCMeta):
for k, v in _expand_structure(name, value):
if not v._name:
v._name = k
else:
elif v._name != k:
logger.warning(
"try setting the submodule `{}` to a new attribute `{}`, its name `{}` will remain unchanged".format(
v._name, k, v._name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册