Skip to content

Commit

Permalink
Update tests/fluxion/layers/test_basics.py
Browse files Browse the repository at this point in the history
Co-authored-by: Cédric Deltheil <[email protected]>
  • Loading branch information
limiteinductive and deltheil committed Dec 13, 2023
1 parent 7d9ceae commit e2f2e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/fluxion/layers/test_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def test_slicing_negative_indices() -> None:

def test_none_end_slicing() -> None:
x = torch.randn(2, 1000, 400)
slicing = Slicing(dim=1, start=1)
sliced = slicing(x)
slicing_layer = Slicing(dim=1, start=1)
sliced = slicing_layer(x)
expected = x[:, 1:, :]
assert torch.equal(sliced, expected)

Expand Down

0 comments on commit e2f2e33

Please sign in to comment.