Open kshitij12345 opened 1 year ago
Good catch!
Do we have a sense of how much this increases testing time by?
Will confirm this in a day or two.
Timings are posted here : https://github.com/pytorch/pytorch/pull/91355#issue-1509073244
This one should probably be closed
I want to check other tests in functorch/test_ops.py
like test_vmapvjp and friends. So keeping it open till then.
In
functorch
test suite, we usesample_inputs
to get samples from an OpInfo. The problem is thatsample_inputs
may or may not cover all the case/overloads for an operator. I think we should usereference_inputs
which super set ofsample_inputs
and more comprehensive. (Though this will increase the test times).Switching
sample_inputs
toreference_inputs
leads to bunch of failure fortest_op_has_batch_rule
including the ones mentioned in https://github.com/pytorch/functorch/issues/1080 https://github.com/pytorch/functorch/issues/1069Refer to https://github.com/pytorch/pytorch/pull/91355 for failures.
cc: @zou3519