Skip to content

Commit

Permalink
Add additional versions to GitHub Actions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerYep committed Nov 4, 2022
1 parent 15a7444 commit 2bd59a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/torchinfo_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def test_parameters_with_other_layers() -> None:

def test_nested_leftover_params() -> None:
x = torch.zeros(100, 2)
result = summary(InsideModel(), input_data=(x,), row_settings=("var_names",))
result = summary(InsideModel(), input_data=[x], row_settings=("var_names",))
expected = sum(p.numel() for p in InsideModel().parameters() if p.requires_grad)
assert result.total_params == expected == 8

Expand Down

0 comments on commit 2bd59a1

Please sign in to comment.