You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(tensor-ops): refine error message matching and improve test cases
Update `pytest.raises` match strings for `IndexError` to use a more flexible regex (`Dimension .* out of range`), accounting for variations in error messages.
Refactor `test_stack_inconsistent_shapes_raises` to correctly assert `RuntimeError` instead of `ValueError` and improve the test setup to explicitly create instances with incompatible batch shapes.
Remove the redundant `test_cat_incompatible_batch_shapes` as its functionality is covered by `test_cat_inconsistent_shapes_raises`.
Explicitly set `device=torch.device("cpu")` in `OptionalFieldsTestClass` test cases for clarity and consistency.
0 commit comments