Skip to content

Commit

Permalink
Improve the TensorNet model class coverage (#276)
Browse files Browse the repository at this point in the history
* improve TensorNet model coverage

* Update pyproject.toml

Signed-off-by: Tsz Wai Ko <[email protected]>

* Improve the unit test for SO(3) equivarance in TensorNet class

---------

Signed-off-by: Tsz Wai Ko <[email protected]>
  • Loading branch information
kenko911 authored Jun 22, 2024
1 parent c612f62 commit cfd4874
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/models/test_tensornet.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def test_model(self, graph_MoS):
os.remove("model.pt")
os.remove("model.json")
os.remove("state.pt")
model = TensorNet(is_intensive=False, equivariance_invariance_group="SO(3)")
assert torch.numel(output) == 1

def test_exceptions(self):
with pytest.raises(ValueError, match="Invalid activation type"):
Expand Down

0 comments on commit cfd4874

Please sign in to comment.