-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow some tolerance in test comparison #219
Conversation
Note that the default is relative tol = 1e-5 & absolute tol = 1e-8. I'm also considering NaNs as equal values.
Can you answer:
|
|
As suggested by @grantbuster since it was not supposed to have any NaN.
Okay this all looks good. Just wanted to make sure there weren't nan's in the output... that would be problematic haha |
In that case, shall I place back the Another question. I'm intrigued by why we didn't have this difference before. I know that something changed on CUDNN to approximate some values for speed, but I have no idea if that is the source. This difference seems small enough to ignore for now, but should I open an issue so we don't forget to maybe check this in the future? |
don't add the nan_equal... Current test will fail if there are any nans which is appropriate. If you want to add another line that is |
* Allow some tolerance in test comparison Note that the default is relative tol = 1e-5 & absolute tol = 1e-8. I'm also considering NaNs as equal values. * Removing nan_equal As suggested by @grantbuster since it was not supposed to have any NaN.
Is it OK to downgrade the comparison from
array_equal
toall_close
withequal_nan
? In this particular case I don't see a reason why this wouldn't be necessarily identical, thusarray_equal
should work, but this is now failing on kestrel. Have anyone had the same issue?Note that the default is relative tol = 1e-5 & absolute tol = 1e-8. So the question is if this is acceptable or we need to dive into to understand why this tiny difference.