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

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

GitOrigin-RevId: 424ec791d7eda63d2835154d3d2e985a8915f7d5
上级 edd3ee67
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册