Skip to content

[TEST] Conv2dGrad Takes long time to finish #8579

Description

@tqchen

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions