Skip to content

Commit

Permalink
fix: set ivy backend in torch inplace translation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong committed Jan 17, 2025
1 parent 54ab5d8 commit 73365ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ivy_tests/test_transpiler/translations/test_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,8 @@ def test_translate_torch_lstm(target):

@pytest.mark.parametrize("target", get_target_list())
def test_translate_torch_inplace(target):
ivy.set_backend(target)

def inplace_fn():
M = torch.zeros(4, 16)
M[..., -1].fill_(1)
Expand Down

0 comments on commit 73365ab

Please sign in to comment.