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

Turn off complex tensors completely #51

Open
ajlok3 opened this issue Feb 1, 2022 · 3 comments
Open

Turn off complex tensors completely #51

ajlok3 opened this issue Feb 1, 2022 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@ajlok3
Copy link

ajlok3 commented Feb 1, 2022

Since some features of pytorch are not yet supported for ComplexFloat tensors, it would be desirable to have a "switch" to turn off complex tensor completely (maybe in a different branch?).

My particular use case involves multi-GPU training with nccl backend. The error message I get is:

RuntimeError: Input tensor data type is not supported for NCCL process group: ComplexFloat

... and the complex tensors don't seem to come from my code but from within KbNUFFT object within the model.

@mmuckley
Copy link
Owner

mmuckley commented Feb 2, 2022

Hello @ajlok3, I'm not sure this is possible with more recent versions of PyTorch - as you can see here there are no options for real-valued tensors. If you pass in something real-valued, the function will return something complex valued.

I assume that you are passing real-valued tensors into torchkbnufft where the last dimension is of size 2?

@mmuckley
Copy link
Owner

mmuckley commented Feb 2, 2022

Also, could you let me know what version of PyTorch you're on? As you can see here on more recent versions there might be complex-valued NCCL support.

@anjali411
Copy link

cc. @rohan-varma

@mmuckley mmuckley added enhancement New feature or request question Further information is requested labels Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants