Browse Source

docs(mge/module): add Module.state_dict docstring

GitOrigin-RevId: 424ec791d7
release-1.11.1
Megvii Engine Team 2 years ago
parent
commit
b50947d2e2
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      imperative/python/megengine/module/module.py

+ 1
- 0
imperative/python/megengine/module/module.py View File

@@ -452,6 +452,7 @@ class Module(metaclass=ABCMeta):
return offset

def state_dict(self, rst=None, prefix="", keep_var=False):
r"""Returns a dictionary containing whole states of the module."""
_rst = self._state_dict(rst=rst, prefix=prefix, keep_var=keep_var)
rst = OrderedDict()
XNorm_typeclass = _get_XNorm_typeclass()


Loading…
Cancel
Save