Skip to content
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

Approx{1,2}_{v2,uniform}, af_gemm #234

Merged
merged 2 commits into from
Aug 20, 2020
Merged

Conversation

syurkevi
Copy link
Contributor

This PR adds approx functions from upstream 3.7. Writing to existing array is supported by the trailing output= kargs.

This PR also adds support for af_gemm. Adding a af_c{float,double}_t ctypes class was necessary as complex types aren't natively supported by ctypes (afaik).

TODO: Not sure how to best implement fp16 type

raise TypeError("unsupported input type")


safe_call(backend.get().af_gemm(c_pointer(out.arr),
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to this PR: I am curious if we have to do backend.get() for every such call. Is this cost negligible ?

@9prady9 9prady9 merged commit a914b02 into arrayfire:master Aug 20, 2020
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.

2 participants