← 返回首页
3545 bug fp16 types not allowed for atan2 method by christophe-murphy · Pull Request #3559 · arrayfire/arrayfire · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

3545 bug fp16 types not allowed for atan2 method#3559

Merged
christophe-murphy merged 2 commits into
masterfrom
3545-bug-fp16-types-not-allowed-for-atan2-method
Jan 8, 2025
Merged

3545 bug fp16 types not allowed for atan2 method#3559
christophe-murphy merged 2 commits into
masterfrom
3545-bug-fp16-types-not-allowed-for-atan2-method

Conversation

Copy link
Copy Markdown
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
Copy Markdown
Contributor

edwinsolisf left a comment

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Works, tested on Windows

christophe-murphy merged commit f6559a5 into master Jan 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

2 participants

Footer

© 2026 GitHub, Inc.