-
Notifications
You must be signed in to change notification settings - Fork 2
Process grid
tensor by builder.add_transpose
makes the function always run on CPU
#3
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
Comments
Hi,
|
Thanks for your reply!
|
|
hi @Tengxu-Sun were you able to get the 5d torch.grid_sampler to work in coreml?? |
Hi, @dneprDroid
I'm trying to implement a 5-D input tensor version of custom
grid_sample
based on your work. Now i meet two problems hoping you can help me.First, you said "we should transpose the grid to [n, 2, w, h] shape (for encoding it to a
coreml
2-channel texture)". But i found this process may lead to the function always run on CPU in my implementation. The GPU functionencode
works without this process. I read your code but haven't find a solution. Have you met this problem ever?Second, since i want implement a 5-D input tensor version of custom
grid_sample
, howid<MTLTexture>
inencode
work at this time? I found the data storage is different with ordinary buffer, and i'm not sure how to read data inid<MTLTexture>
so that the data can be calculated in later computation process.Thank you!
The text was updated successfully, but these errors were encountered: