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

Commit

Permalink
Fix exception handling api doc (#13519)
Browse files Browse the repository at this point in the history
* Fix exception handling api doc

* Update waitall api doc

Co-Authored-By: anirudh2290 <[email protected]>
  • Loading branch information
anirudh2290 authored and nswamy committed Dec 8, 2018
1 parent 95f1e1c commit 7d2b804
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/mxnet/ndarray/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ def waitall():
"""Wait for all async operations to finish in MXNet.
This function is used for benchmarking only.
.. warning::
If your code has exceptions, `waitall` can cause silent failures.
For this reason you should avoid `waitall` in your code.
Use it only if you are confident that your code is error free.
Then make sure you call `wait_to_read` on all outputs after `waitall`.
"""
check_call(_LIB.MXNDArrayWaitAll())

Expand Down

0 comments on commit 7d2b804

Please sign in to comment.