Skip to content

Commit

Permalink
Fix Sphinx python docstring error: initializer.InitDesc (apache#12939) (
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored and Jose Luis Contreras committed Nov 13, 2018
1 parent 340d83a commit e72c583
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 e72c583

Please sign in to comment.