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 Complex-Number Tensors in PhySO: Seeking Guidance or Workaround #59

Open
LostArkRaider opened this issue Dec 1, 2024 · 0 comments

Comments

@LostArkRaider
Copy link

Hello PhySO Community,

Thank you for creating and maintaining this incredible tool! I'm excited to dive into PhySO, but I’ve encountered a roadblock that I believe might resonate with others working on similar use cases.

I’m currently working on a project that involves processing complex-number tensors (dtype: torch.complex64). However, I ran into an issue in dataset.py at the following assertion:

assert X.dtype == torch.float64 or X.dtype == torch.float32, "X must contain floats."

This check prevents me from directly using complex-number tensors as inputs. My use case heavily relies on complex-number tensor math, and I’m wondering if there’s an established workaround or alternate approach within PhySO to handle this type of data.

It appears that several of the Feynman Lectures on Physics formulas used for benchmarking potentially have a complex-number result. It would be helpful to know how that is handed in PhySO.

I’d greatly appreciate any guidance or suggestions from the community. This functionality would open up exciting possibilities for applications in my field, and I’m sure others exploring complex tensor use cases might benefit as well.

Thank you for taking the time to read this, and for any help you can provide!

Best regards,
Keith Brickey

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

1 participant