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 Dec 23, 2024
1 parent e74a6ac commit 6615837
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deepmd/utils/out_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ def compute_stats_do_not_distinguish_types(
)
output_std = np.std(output_redu, axis=0)

computed_output_bias = computed_output_bias.reshape([natoms.shape[1]] + var_shape) # noqa: RUF005
computed_output_bias = computed_output_bias.reshape(
[natoms.shape[1]] + var_shape
) # noqa: RUF005
output_std = output_std.reshape(var_shape)
output_std = np.tile(output_std, (computed_output_bias.shape[0], 1))
else:
Expand Down

0 comments on commit 6615837

Please sign in to comment.