Skip to content

Support implicit promoting with f16 #321

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

Merged

Conversation

Benjamin-Philip
Copy link
Contributor

Closes #320

  • Create a ImplicitPromote trait and implement it for other types
  • Implement ImplicitPromote traits for f16

@Benjamin-Philip
Copy link
Contributor Author

I think the clippy errors are inherited from the current HEAD.

@9prady9 9prady9 force-pushed the bp-fix-f16-implicitpromoting branch from 0c1e9e9 to d1b9d67 Compare June 25, 2022 09:45
@9prady9 9prady9 requested review from 9prady9, syurkevi and umar456 June 25, 2022 10:15
@9prady9 9prady9 added this to the 3.8.1 milestone Jun 25, 2022
umar456
umar456 previously approved these changes Jul 13, 2022
@umar456 umar456 force-pushed the bp-fix-f16-implicitpromoting branch from d1b9d67 to fb98756 Compare July 13, 2022 21:40
@umar456 umar456 force-pushed the bp-fix-f16-implicitpromoting branch from eab810f to 552a84a Compare July 13, 2022 21:59
@umar456
Copy link
Member

umar456 commented Jul 18, 2022

@9prady9 I think this is good to go. I made additional changes for f16 for other functions but I was having a problem with the negate function. I think the problem is that the num package does support half::f16 but I am not sure.

@9prady9
Copy link
Member

9prady9 commented Jul 19, 2022

@umar456 thanks umar, will take a look at it soon.

@9prady9 9prady9 force-pushed the bp-fix-f16-implicitpromoting branch from 552a84a to 93b1036 Compare September 11, 2022 12:16
@9prady9
Copy link
Member

9prady9 commented Sep 11, 2022

I think the clippy errors are inherited from the current HEAD.

I took care of those, thanks for letting me know.

@9prady9
Copy link
Member

9prady9 commented Sep 11, 2022

@9prady9 I think this is good to go. I made additional changes for f16 for other functions but I was having a problem with the negate function. I think the problem is that the num package does support half::f16 but I am not sure.

thank you. Documentation is not clear on that one, I will check that once more.

@9prady9 9prady9 force-pushed the bp-fix-f16-implicitpromoting branch from 93b1036 to 0639258 Compare October 14, 2022 06:55
@BA8F0D39
Copy link
Contributor

Could we also update the half 1.5.0 to half 2.2.0 in arrayfire-rust? to get new features

Benjamin-Philip and others added 2 commits February 25, 2023 11:14
- Create a ImplicitPromote<f16> trait and implement it for other types
- Implement ImplicitPromote<T> traits for f16
@9prady9 9prady9 force-pushed the bp-fix-f16-implicitpromoting branch from 0639258 to f0c63ac Compare February 25, 2023 05:44
Copy link
Member

@9prady9 9prady9 left a comment

Choose a reason for hiding this comment

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

Sorry about the extended delay on this. Thanks for this contribution @Benjamin-Philip and @umar456 for pitching in.

@9prady9 9prady9 merged commit bd3be3e into arrayfire:master Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Binary ops with a f16 array does not compile
4 participants