Skip to content

Commit

Permalink
pd: fix typo in deepmd-kit-tmp/deepmd/pd/utils/dataloader.py (#4512)
Browse files Browse the repository at this point in the history
Fix a typo introduced in #4479, which will cause an error if torch is
not installed.

![image](https://github.com/user-attachments/assets/3f9b0955-ec2b-46ac-9efa-1ed4b4e023eb)

cc @njzjz 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Updated the import path for the `mix_entropy` function to reflect a
reorganization of utility functions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Chun Cai <[email protected]>
  • Loading branch information
HydrogenSulfate and caic99 authored Dec 26, 2024
1 parent cc27a60 commit bf79cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pd/utils/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from deepmd.pd.utils.dataset import (
DeepmdDataSetForLoader,
)
from deepmd.pt.utils.utils import (
from deepmd.pd.utils.utils import (
mix_entropy,
)
from deepmd.utils import random as dp_random
Expand Down

0 comments on commit bf79cc6

Please sign in to comment.