Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 1, 2024
1 parent 8b1b280 commit 0604d16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deepmd/pt/train/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,9 @@ def get_data(self, is_train=True, task_key="Default"):
except StopIteration:
# Refresh the status of the dataloader to start from a new epoch
with torch.device("cpu"):
self.training_data[task_key] = self.training_dataloader[task_key]
self.training_data[task_key] = self.training_dataloader[

Check warning on line 1055 in deepmd/pt/train/training.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/train/training.py#L1054-L1055

Added lines #L1054 - L1055 were not covered by tests
task_key
]
batch_data = next(iter(self.training_data[task_key]))
else:
if self.validation_data[task_key] is None:
Expand Down

0 comments on commit 0604d16

Please sign in to comment.