Skip to content

fp16 support: flat, clamp, select_scalar #2583

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
merged 4 commits into from Jul 19, 2019
Merged

fp16 support: flat, clamp, select_scalar #2583

merged 4 commits into from Jul 19, 2019

Conversation

ghost
Copy link

@ghost ghost commented Jul 14, 2019

No description provided.

@umar456
Copy link
Member

umar456 commented Jul 14, 2019

Thank you for submitting this!. Can you make a unit test for this. Check out PR #2572 for some examples. Basically use the half_float::half to create an array. and check the results.

@ghost
Copy link
Author

ghost commented Jul 14, 2019

I'm not a C++ person, sorry. Also why do all unary ops for f16 return f32?

@umar456
Copy link
Member

umar456 commented Jul 14, 2019

I can add the tests in a bit.

Unary ops have not been correctly implemented yet. It is something that needs to be fixed.

@ghost ghost changed the title Support flat for f16 Support flat, clamp for f16 Jul 14, 2019
@ghost ghost changed the title Support flat, clamp for f16 fp16 support: flat, clamp, select_scalar Jul 14, 2019
@umar456
Copy link
Member

umar456 commented Jul 16, 2019

Some of the tests I added depends on #2572. I will update once I have that merged in.

@umar456
Copy link
Member

umar456 commented Jul 19, 2019

Rebased and fixed tests.

@umar456 umar456 merged commit 119a8c4 into arrayfire:master Jul 19, 2019
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.

1 participant