This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
MegEngine
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
31
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
fix(mge/module): fix mistake warning message of module auto naming
GitOrigin-RevId:
4b85c13e90
tags/v1.6.0-rc1
Megvii Engine Team
3 years ago
parent
c54a731b9b
commit
298c44433f
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
imperative/python/megengine/module/module.py
+ 1
- 1
imperative/python/megengine/module/module.py
View File
@@ -626,7 +626,7 @@ class Module(metaclass=ABCMeta):
for k, v in _expand_structure(name, value):
if not v._name:
v._name = k
el
se
:
el
if v._name != k
:
logger.warning(
"try setting the submodule `{}` to a new attribute `{}`, its name `{}` will remain unchanged".format(
v._name, k, v._name
Write
Preview
Loading…
Cancel
Save