-
Notifications
You must be signed in to change notification settings - Fork 530
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
Add f16 support for modulus and norm #3258
base: master
Are you sure you want to change the base?
Conversation
6e0dec7
to
9c1389e
Compare
float math functions in CUDA have the format f<op>f
ASSERT_ARRAYS_EQ(af::constant(1, shape, s64), rem); | ||
ASSERT_ARRAYS_EQ(af::constant(0, shape, s64), diff); | ||
} | ||
|
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.
test negative modulus, similar to halide/Halide#5773
@@ -0,0 +1,183 @@ | |||
/******************************************************* | |||
* Copyright (c) 2014, ArrayFire |
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.
2022
|
||
ASSERT_DOUBLE_EQ(norm_inf, result); | ||
} | ||
|
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.
tests for vector norm?
atleast:
add TODO, open new issue
Add support for f16 for modulus and norm. This PR also adds tests for the norm function
Description
Fixes: #3256
Changes to Users
Checklist
[ ] Functions added to unified API[ ] Functions documented