Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix Sphinx python docstring error: initializer.InitDesc (#12939) (#13148
Browse files Browse the repository at this point in the history
)
  • Loading branch information
frankfliu authored and nswamy committed Nov 12, 2018
1 parent e402242 commit f971d64
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/mxnet/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@

# inherit str for backward compatibility
class InitDesc(str):
"""Descriptor for the initialization pattern.
"""
Descriptor for the initialization pattern.
Parameter
---------
Parameters
----------
name : str
Name of variable.
attrs : dict of str to str
Expand Down Expand Up @@ -67,7 +68,7 @@ def set_verbosity(self, verbose=False, print_func=None):
print_func : function
A function that computes statistics of initialized arrays.
Takes an `NDArray` and returns an `str`. Defaults to mean
absolute value str((|x|/size(x)).asscalar()).
absolute value str((abs(x)/size(x)).asscalar()).
"""
self._verbose = verbose
if print_func is None:
Expand Down

0 comments on commit f971d64

Please sign in to comment.