pytorch
26b6d044 - Add forward AD test for op info (#57701)

Commit
3 years ago
Add forward AD test for op info (#57701) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57701 The new OpInfo flag has the following semantic: - If it says that it supports forward AD, we run gradcheck with forward AD to ensure it is correct - If it says that it does not support it, we check that the corresponding error is raised All the added tests take 3s to run for CPU builds and 1min for GPU builds which should be pretty negligible compared to the test_ops runtime for each of these arch. Test Plan: Imported from OSS Reviewed By: agolynski Differential Revision: D28387767 Pulled By: albanD fbshipit-source-id: 369d76921c8460aa4548f9b5159b7297994672f5
Author
Parents
Loading