Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gradcheck test #493

Merged
merged 9 commits into from
Jun 25, 2020
Merged

Fix gradcheck test #493

merged 9 commits into from
Jun 25, 2020

Conversation

IgnacioJPickering
Copy link
Contributor

This PR adds two new tests, testGradCheck and testGradGradCheck, which are done in a way that
are actually feasible in CPU and CUDA (tests take in total ~4 s in CPU). Currently these tests pass.

This PR deletes testGradient which was essentially never run since it was skipped by github and also always failed.
The issue was nondet_tol which was set to zero but shouldn't be, since many pytorch operations we perform use atomic_add and
similar nondeterministic ops internally, which means two inputs have very slightly different outputs. Also this test was incredibly slow.

@zasdfgbnm zasdfgbnm merged commit 9a03bc6 into aiqm:master Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants