-
Notifications
You must be signed in to change notification settings - Fork 70
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
Non-deterministic wrong result from tensordot #79
Comments
I feel discrepancies like this with float16 are inevitable, because of region reductions being non-deterministic. Do we know that this issue reproduces on a single CPU? Otherwise, I wouldn't worry too much about this issue. |
I think @manopapad and I have convinced ourselves that this is a precision issue. |
@marcinz It sounds like 0.1% relative accuracy is a more reasonable expectation when dealing with 16-bit floating point types. Could you change np.allclose on test runs using float16, so we don't get spurious failures in CI? |
I have ported @marcinz's fix from branch-21.10 |
Minor fix for the cost function
This program (derived from
tests/tensordot.py
):when run as follows:
fails about 20% of the time, with:
The text was updated successfully, but these errors were encountered: