-
Notifications
You must be signed in to change notification settings - Fork 3
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
Polyval test Assertion Error Fix #67
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shbiswas834 the PR is changing file permissions, please revert them and add condition for rocm as mentioned below.
@@ -694,7 +694,7 @@ def test_polyfit_weighted_diff_types(self, xp, dtype1, dtype2, dtype3): | |||
class TestPolyval(Poly1dTestBase): | |||
|
|||
@testing.for_all_dtypes() | |||
@testing.numpy_cupy_allclose(rtol={numpy.float16: 1e-2, 'default': 1e-3}) | |||
@testing.numpy_cupy_allclose(rtol={numpy.float16: 1e-2, 'default': 2e-3}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes tolerance for both rocm and cuda, please add a conditional check for rocm. You can use runtime.is_hip to check the platform.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @pnunna93 Added this check. UT passes
ut_lib.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, please fix file permissions and static checks.
4052fa4
to
e3dbff1
Compare
e3dbff1
to
9c6dff7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR does the following:
tests/cupy_tests/lib_tests - TestPolyval::test_polyval - AssertionError
check_func
from PR 63cupy_unit_tests_pr_revert.log