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

Support for accelerate or other GPU acceleration libs #552

Open
Abastro opened this issue May 12, 2021 · 1 comment
Open

Support for accelerate or other GPU acceleration libs #552

Abastro opened this issue May 12, 2021 · 1 comment

Comments

@Abastro
Copy link

Abastro commented May 12, 2021

Hello,
I'd like to have it being able to pass the GPU tensor to accelerate to calculate some stuffs there. Is this supported? If not, is it feasible?
For now, I found a way to pass GPU pointer to the accelerate, so I wonder if there is a way to extract the pointer from the tensor.

@junjihashimoto
Copy link
Member

It is possible to pass CPU's tensor-data via bytestring like this code.
https://github.com/hasktorch/hasktorch/blob/master/hasktorch/src/Torch/Vision.hs#L84-L103
We may be able to do something for GPU's tensor, but I've never tried it.

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

No branches or pull requests

2 participants