Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMethod/constructor which takes as input angle and magnitude and returns a complex tensor #35312
Comments
|
Hello, I would like to work on this, can I? If so, what is a good place for this functionality? |
|
Here is a short range vs. long range solution to get you into PyTorch development. I've added some links to some relevant files you will need to change. Short Range Solution: Add a polar() and cart() math kernels.
Long Range Solution: Add ComplexPolarFloat dtypeThe short range solution does not provide PyTorch with the knowledge that your complex number is in polar or cartesian coordinates. Hence all operators currently assume cartesian coordinates. We have started to discuss adding a Complex Polar dtype.
I would just focus on the short-range solution for now, but I think we need the long-range solution to speed up some of these computations. |
|
@dylanbespalko |
|
For reference, Numpy doesn't seem to have this yet: numpy/numpy#5228 |
|
@ezyang The long-range solution of creating a Hence, the end-goal here should be to implement a vectorized #35524 contains some new files that you should be aware of. |
cc @ezyang @anjali411 @dylanbespalko