We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f62ec9 commit ba4e2adCopy full SHA for ba4e2ad
1 file changed
deepmd/pt/utils/auto_batch_size.py
@@ -57,6 +57,7 @@ def is_oom_error(self, e: Exception) -> bool:
57
or "cusolver error: CUSOLVER_STATUS_INTERNAL_ERROR" in e.args[0]
58
# https://github.com/deepmodeling/deepmd-kit/issues/4594
59
or "CUDA error: out of memory" in e.args[0]
60
+ or "nonzero is not supported" in e.args[0]
61
)
62
) or isinstance(e, torch.cuda.OutOfMemoryError):
63
# Release all unoccupied cached memory
0 commit comments