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

update ndarray stack Doc for #11925 #12015

Merged
merged 5 commits into from
Aug 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions python/mxnet/ndarray_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,21 @@ class BroadcastToDoc(NDArrayDoc):
(2L, 2L, 2L, 3L)
"""

class StackDoc(NDArrayDoc):
"""
Example
--------
Join a sequence of arrays along a new axis.
>>> x = mx.nd.array([1, 2])
>>> y = mx.nd.array([3, 4])
>>> stack(x, y)
[[1, 2],
[3, 4]]
>>> stack(x, y, axis=1)
[[1, 3],
[2, 4]]
"""

class CustomDoc(NDArrayDoc):
"""
Example
Expand Down