Looking at the test time log, https://ci.tlcpack.ai/job/tvm/job/main/1356/testReport/ctypes.tests.python.relay/test_op_grad_level2/
conv2d grad takes a long time to finish(1h)..
Possible cause: this is likely due to our numerical gradient checker trying to do numerical gradient for all directions which scales linearly to the number of entries.
Possible resolutions:
- K0: Use memoization to cache the numerical gradient needs.
- K1: run a different kind of test that randomizes the direction and check consistency, see page 8 of this slide
I would suggest we go with K1 with a few directions instead of the full direction checking.