Skip to content

Conversation

@christophe-murphy
Copy link
Contributor

Add ability to use atan2 and hypot functions with fp16 arguments.

Description

Cases have been added to the atan2 and hypot functions to handle fp16 arguments. Previously an exception was thrown when trying to use fp16 arguments with these functions.

Tests have been added to verify that these functions are working correctly with fp16 arguments. Note that the OpenCL back end does not support half precision.

Several other functions have been identified as not supporting fp16, a new issue will be created for these.

Fixes: #3545

Changes to Users

atan2 and hypot functions can now be used on fp16 arrays

Checklist

  • [ x] Rebased on latest master
  • [ x] Code compiles
  • [ x] Tests pass
  • [ x] Functions added to unified API
  • [ x] Functions documented

Copy link
Contributor

@edwinsolisf edwinsolisf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works, tested on Windows

@christophe-murphy christophe-murphy merged commit f6559a5 into master Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] FP16 Types Not Allowed for Atan2 Method

3 participants