Enabling torch.Tensor datatype support on CPU device #442
remy-abergel
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
There is a much nicer PyTorch package https://github.com/flatironinstitute/pytorch-finufft by @WardBrian and @eickenberg which calls cufinufft and finufft as backend. You may consider use pytorch-finufft directly, it also has autodiff. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
The following code works fine when
device='cuda'
and fails whendevice='cpu'
:When
device='cpu'
, the following error is raised:A trivial workaround can be made using
Both
finufft
andcufinufft
packages are probably not intended to handletorch.Tensor
arrays on CPU device, but adding such support into one of those packages would be nice to allow device independent development in PyTorch. What do you think?Beta Was this translation helpful? Give feedback.
All reactions