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

Commit

Permalink
Sphinx failure fixes (#13213)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdantu authored and nswamy committed Nov 12, 2018
1 parent 042472a commit 2e4d6c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/api/python/ndarray/ndarray.md
Original file line number Diff line number Diff line change
Expand Up @@ -704,12 +704,14 @@ The `ndarray` package provides several classes:
.. automodule:: mxnet.ndarray
:members:
:noindex:
:imported-members:
:special-members:
:exclude-members: CachedOp, NDArray
.. automodule:: mxnet.random
:members:
:noindex:
```

Expand Down
4 changes: 2 additions & 2 deletions python/mxnet/ndarray/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ def save(fname, data):
>>> mx.nd.save('my_list', [x,y])
>>> mx.nd.save('my_dict', {'x':x, 'y':y})
>>> mx.nd.load('my_list')
[<NDArray 2x3 @cpu(0)>, <NDArray 1x4 @cpu(0)>]
``[<NDArray 2x3 @cpu(0)>, <NDArray 1x4 @cpu(0)>]``
>>> mx.nd.load('my_dict')
{'y': <NDArray 1x4 @cpu(0)>, 'x': <NDArray 2x3 @cpu(0)>}
``{'y': <NDArray 1x4 @cpu(0)>, 'x': <NDArray 2x3 @cpu(0)>}``
"""
if isinstance(data, NDArray):
data = [data]
Expand Down

0 comments on commit 2e4d6c8

Please sign in to comment.