-
Notifications
You must be signed in to change notification settings - Fork 22
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
ENH: update backend tests #552
Conversation
@shssf CI old fails seem are not related with this PR changes. |
} | ||
for (size_t i = 0; i < size; ++i) | ||
{ | ||
EXPECT_NEAR(result1[i], result2[i], 0.004); |
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.
why you are expecting close but not the same values?
looks like values should be the same if you are using the same seed.
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.
it is common case for checking floating point values. But you are right it is better check the same values here for the same device calculation.
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.
@Alexander-Makaryev this changes will be done on refactoring this common tests on other PR. This tests case will be generalized for most random distribution functions. Needed changes will be done there. I am leaving this PR as is.
@Alexander-Makaryev @shssf Most works for this PR are done. This PR was for restructuring generally backend tests. Other comment on #552 (comment) |
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.
🔢
Description
TODO
dpnp/backend/tests/test_random.cpp