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 Jun 13, 2024
1 parent 5c44bba commit 4295dd5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deepmd/pt/model/atomic_model/base_atomic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,12 @@ def change_out_bias(
preset_bias=self.preset_out_bias,
)
self._store_out_stat(delta_bias, out_std, add=True)
elif bias_adjust_mode == "set-by-statistic":
intensive=self.fitting_net.intensive if hasattr(self.fitting_net, 'intensive') else False
elif bias_adjust_mode == "set-by-statistic":
intensive = (

Check warning on line 458 in deepmd/pt/model/atomic_model/base_atomic_model.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/model/atomic_model/base_atomic_model.py#L458

Added line #L458 was not covered by tests
self.fitting_net.intensive
if hasattr(self.fitting_net, "intensive")
else False
)
bias_out, std_out = compute_output_stats(
sample_merged,
self.get_ntypes(),
Expand Down

0 comments on commit 4295dd5

Please sign in to comment.