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

Commit

Permalink
Fix warning in waitall doc (#13618)
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudh2290 authored and nswamy committed Dec 12, 2018
1 parent 97e0c97 commit 9ce7eab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions python/mxnet/ndarray/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,13 @@ 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`.
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 9ce7eab

Please sign in to comment.