Skip to content

Commit a1ba195

Browse files
njzjzCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Jinzhe Zeng <njzjz@qq.com>
1 parent a80ce64 commit a1ba195

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

deepmd/utils/batch_size.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,12 @@ def is_oom_error(self, e: Exception) -> bool:
292292
def set_oom_retry_mode(self, enable: bool) -> None:
293293
"""Set OOM retry mode.
294294
295-
In OOM retry mode, all data will be re-executed.
295+
In OOM retry mode, an OOM during execution may reduce the current
296+
batch size and raise :class:`RetrySignal` to indicate that execution
297+
should be retried.
298+
299+
Callers that want all data to be re-executed must catch
300+
:class:`RetrySignal` and restart the full evaluation themselves.
296301
297302
Parameters
298303
----------

0 commit comments

Comments
 (0)