Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
caic99 committed Nov 28, 2024
1 parent e0ace97 commit e6f81a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepmd/pt/utils/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
)

from deepmd.pt.utils import (
dp_random,
env,
)
from deepmd.pt.utils.dataset import (
Expand All @@ -50,7 +51,7 @@ def setup_seed(seed) -> None:
torch.manual_seed(seed)
torch.cuda.manual_seed_all(seed)
torch.backends.cudnn.deterministic = True
np.random.seed(seed)
dp_random.seed(seed)


class DpLoaderSet(Dataset):
Expand Down

0 comments on commit e6f81a5

Please sign in to comment.