Skip to content

Commit

Permalink
mitigate -> avoid; do not use AI-style language
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi-FanLi committed May 25, 2024
1 parent b89b97b commit e46b232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/utils/batch_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, initial_batch_size: int = 1024, factor: float = 2.0) -> None:
self.minimal_not_working_batch_size = 2**31
log.info(

Check warning on line 64 in deepmd/utils/batch_size.py

View check run for this annotation

Codecov / codecov/patch

deepmd/utils/batch_size.py#L64

Added line #L64 was not covered by tests
"If you encounter the error 'an illegal memory access was encountered', this may be due to a TensorFlow issue. "
"To mitigate this, set the environment variable DP_INFER_BATCH_SIZE to a smaller value than the last adjusted batch size. "
"To avoid this, set the environment variable DP_INFER_BATCH_SIZE to a smaller value than the last adjusted batch size. "
"The environment variable DP_INFER_BATCH_SIZE controls the inference batch size (nframes * natoms). "
)
else:
Expand Down

0 comments on commit e46b232

Please sign in to comment.