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 9dfa85a commit 56e6cac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deepmd/tf/descriptor/se_atten.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,9 @@ def _pass_filter(
self.nei_type_vec, # extra input for atten
)
if self.smooth:
inputs_i = tf.where(tf.cast(mask, tf.bool), inputs_i, self.avg_looked_up)
inputs_i = tf.where(

Check warning on line 685 in deepmd/tf/descriptor/se_atten.py

View check run for this annotation

Codecov / codecov/patch

deepmd/tf/descriptor/se_atten.py#L684-L685

Added lines #L684 - L685 were not covered by tests
tf.cast(mask, tf.bool), inputs_i, self.avg_looked_up
)
else:
inputs_i *= mask

Check warning on line 689 in deepmd/tf/descriptor/se_atten.py

View check run for this annotation

Codecov / codecov/patch

deepmd/tf/descriptor/se_atten.py#L689

Added line #L689 was not covered by tests
if nvnmd_cfg.enable and nvnmd_cfg.quantize_descriptor:
Expand Down

0 comments on commit 56e6cac

Please sign in to comment.