Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
anyangml committed Mar 11, 2024
1 parent 042c86b commit 9ad2c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pt/model/task/polarizability.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def compute_output_stats(
# handle nan values.
constant_matrix = np.nan_to_num(constant_matrix)
if stat_file_path is not None:
stat_file_path.save_numpy(self.constant_matrix)
stat_file_path.save_numpy(constant_matrix)

Check warning on line 271 in deepmd/pt/model/task/polarizability.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/model/task/polarizability.py#L271

Added line #L271 was not covered by tests
self.constant_matrix = torch.tensor(constant_matrix, device=env.DEVICE)

def forward(
Expand Down

0 comments on commit 9ad2c97

Please sign in to comment.