Skip to content

Commit

Permalink
remove device argument from _sort_rcuts_sels
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Mar 6, 2024
1 parent ce0e3fb commit 96683c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pt/model/atomic_model/linear_atomic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def get_model_sels(self) -> List[List[int]]:
"""Get the sels for each individual models."""
return [model.get_sel() for model in self.models]

def _sort_rcuts_sels(self, device: torch.device) -> Tuple[List[float], List[int]]:
def _sort_rcuts_sels(self) -> Tuple[List[float], List[int]]:

Check warning on line 118 in deepmd/pt/model/atomic_model/linear_atomic_model.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/model/atomic_model/linear_atomic_model.py#L118

Added line #L118 was not covered by tests
# sort the pair of rcut and sels in ascending order, first based on sel, then on rcut.
zipped = torch.stack(
[
Expand Down

0 comments on commit 96683c7

Please sign in to comment.