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 7, 2024
1 parent 9f0979d commit 919dad1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deepmd/pt/model/atomic_model/dp_atomic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def forward_atomic(

def get_out_bias(self) -> torch.Tensor:
return self.out_bias

def compute_or_load_stat(
self,
sampled_func,
Expand Down
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 @@ -98,7 +98,7 @@ def mixed_types(self) -> bool:

def get_out_bias(self) -> torch.Tensor:
return self.out_bias

Check warning on line 100 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#L100

Added line #L100 was not covered by tests

def get_rcut(self) -> float:
"""Get the cut-off radius."""
return max(self.get_model_rcuts())
Expand Down
2 changes: 1 addition & 1 deletion deepmd/pt/model/atomic_model/pairtab_atomic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def fitting_output_def(self) -> FittingOutputDef:

def get_out_bias(self) -> torch.Tensor:
return self.out_bias

Check warning on line 140 in deepmd/pt/model/atomic_model/pairtab_atomic_model.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/model/atomic_model/pairtab_atomic_model.py#L140

Added line #L140 was not covered by tests

def get_rcut(self) -> float:
return self.rcut

Expand Down
2 changes: 1 addition & 1 deletion deepmd/pt/model/model/make_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def forward_common(
model_predict = self.output_type_cast(model_predict, input_prec)
return model_predict

def get_out_bias(self)-> torch.Tensor:
def get_out_bias(self) -> torch.Tensor:
return self.atomic_model.get_out_bias()

def change_out_bias(
Expand Down

0 comments on commit 919dad1

Please sign in to comment.