Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
asi1024 committed Sep 17, 2019
1 parent 7ed2bba commit 12cbbed
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions chainerx/_docs/routines.py
Expand Up @@ -579,6 +579,23 @@ def _docs_indexing():
.. seealso:: :func:`numpy.where`
""")

_docs.set_doc(
chainerx.nonzero,
"""nonzero(a)
Return the indices of the elements that are non-zero.
Args:
a (~chainerx.ndarray): Input array.
Returns:
tuple of :func:`~chainerx.ndarray`: Indices of elements that are non-zero.
Note:
During backpropagation, this function does not propagate gradients.
.. seealso:: :func:`numpy.nonzero`
""")


def _docs_linalg():
_docs.set_doc(
Expand Down
1 change: 1 addition & 0 deletions docs/source/chainerx/reference/routines.rst
Expand Up @@ -105,6 +105,7 @@ Indexing routines

chainerx.take
chainerx.where
chainerx.nonzero

Linear algebra
--------------
Expand Down

0 comments on commit 12cbbed

Please sign in to comment.