Skip to content

Commit

Permalink
Update deepmd/pt/train/training.py
Browse files Browse the repository at this point in the history
Signed-off-by: Chun Cai <[email protected]>
  • Loading branch information
caic99 authored Nov 27, 2024
1 parent f281565 commit 64e310a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pt/train/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def run(self) -> None:
def step(_step_id, task_key="Default") -> None:
if self.multi_task:
model_index = dp_random.choice(
np.arange(self.num_model),
np.arange(self.num_model, dtype=np.int_),
p=self.model_prob,
)
task_key = self.model_keys[model_index]
Expand Down

0 comments on commit 64e310a

Please sign in to comment.