Skip to content

Commit cf2811f

Browse files
zhuyuegongchensu
authored andcommitted
formt fixed.
1 parent 206312f commit cf2811f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from .container import ModuleList
22
from .module import Module
33
from .parameter import Parameter
4+
5+
__all__ = ["ModuleList", "Module", "Parameter"]

python/infinicore/nn/modules/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def load(module, local_state_dict, prefix=""):
575575
for k, v in local_state_dict.items()
576576
if k.startswith(child_prefix)
577577
}
578-
load(child, child_state_dict, child_prefix)
578+
load(child, child_state_dict, child_prefix) # noqa: F821
579579

580580
load(self, state_dict)
581581
del load

0 commit comments

Comments
 (0)