Skip to content

Commit

Permalink
Avoid zero-tensor warning
Browse files Browse the repository at this point in the history
  • Loading branch information
frostedoyster committed Feb 7, 2024
1 parent aa4b789 commit 21ca03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_spex/radial_basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, hypers, all_species,
else:
self.is_alchemical = False
self.n_pseudo_species = 0 # dummy for torchscript
self.combination_matrix = torch.nn.Linear(0, 0) # dummy for torchscript
self.combination_matrix = torch.nn.Linear(1, 1) # dummy for torchscript
self.species_neighbor_labels = Labels.empty("dummy")

self.apply_mlp = False
Expand Down

0 comments on commit 21ca03c

Please sign in to comment.