[Opinfo] Better ErrorMsg for test_out with wrong shape #56023
Labels
module: tests
Issues related to tests (not the torch.testing module)
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
While I implement Opinfo for
inner
#55536, the SkipInfo is added due toAssertionError: UserWarning not triggered : Resized a non-empty tensor but did not warn about it.
We assume the output tensor with wrong shape will be resized into expected shape
pytorch/test/test_ops.py
Lines 614 to 627 in b1d17bc
But
torch.inner
doesn't resize the output tensor as we expected, even if it's a bug (reported #56022).We should have a better error message in this case like raising an error of
Output tensor is not resized as expect
rather than assertion for resizing.cc @mruberry @VitalyFedyunin @walterddr
The text was updated successfully, but these errors were encountered: