Skip to content

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