Skip to content

Commit e42b77c

Browse files
committed
typo fix
1 parent cd36a46 commit e42b77c

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

deepmd/env.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@
6565
LRU_CACHE_SIZE = soft_limit // 2
6666
except ImportError:
6767
LRU_CACHE_SIZE = _default_lru_cache_size
68-
else:
69-
LRU_CACHE_SIZE = _default_lru_cache_size
7068

7169

7270
def set_env_if_empty(key: str, value: str, verbose: bool = True) -> None:

source/tests/pt/test_loss_tensor.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
DataRequirementItem,
2525
)
2626

27-
# from ..seed import (
28-
# GLOBAL_SEED,
29-
# )
30-
31-
GLOBAL_SEED = 7
27+
from ..seed import (
28+
GLOBAL_SEED,
29+
)
3230

3331
CUR_DIR = os.path.dirname(__file__)
3432

0 commit comments

Comments
 (0)