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. |
|
Hi, is there any update on this? I'd also like to help if possible. |
|
Hi @wjgan7 this task is still open, so feel free to start working on it. I think we wanna go with the API mentioned here, which is similar to API that tensorflow and matlab have as well. Check out the wiki and contribution-guide and ping me if you have any questions! |
|
Great! Is the best place to ask questions in this issue? |
|
yeah! |
|
hey @anjali411 I want to start contributing to pytorch and noticed that this is a good first issue, however i am using a windows device, will it be possible? Also is there any discussion forum like slack for pytorch where others can help me try contributing |
cc @ezyang @anjali411 @dylanbespalko