We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10d5a67 commit 46cb516Copy full SHA for 46cb516
1 file changed
deepmd/pt/utils/auto_batch_size.py
@@ -54,6 +54,8 @@ def is_oom_error(self, e: Exception) -> bool:
54
or "CUDA driver error: out of memory" in e.args[0]
55
or "cusolver error: CUSOLVER_STATUS_INTERNAL_ERROR" in e.args[0]
56
or "CUDA error: CUBLAS_STATUS_INTERNAL_ERROR" in e.args[0]
57
+ or "nonzero is not supported for tensors with more than INT_MAX elements"
58
+ in e.args[0]
59
):
60
# Release all unoccupied cached memory
61
torch.cuda.empty_cache()
0 commit comments