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
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudh2290 committed Dec 3, 2018
1 parent 8949989 commit 5c1a1ca
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.
Rethrowing exceptions as part of mx.nd.waitall is not supported.
If your code has exceptions, waitall can cause silent failures.
Avoid waitall in your code/precede it with wait_to_read for the outputs
unless you are confident about your code not throwing an exception in
any scenario.
"""
check_call(_LIB.MXNDArrayWaitAll())

Expand Down

0 comments on commit 5c1a1ca

Please sign in to comment.