Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vendor_test/uses_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _test_torch():
assert isinstance(b, torch.Tensor)
assert isinstance(res, torch.Tensor)

torch.testing.assert_allclose(res, [[1., 2., 3.]])
torch.testing.assert_close(res, torch.as_tensor([[1., 2., 3.]]))

assert is_torch_array(res)
assert is_torch_namespace(torch) and is_torch_namespace(torch_compat)
Expand Down
Loading