You are amazing, your example is exactly what I needed!
So using PyTorch functions is enough for the Method to calculate the backward, then I am not sure to understand the Linear/LinearFunction example 18 of the docs, as it seems to use only torch functions too, right?
I agree that it may be significantly slower, but I try to go step by step. It seems that complexed-value tensors are not so relevant for most learning applications, that is at least my conclusion seeing that their implementation is not a priority at all. However, for physics applications, it is of the utmost importance as transformations are usually complex, even is the phase is often a hidden variable of the problem. So I try to get my hands dirty.
Thanks for your help,
SMP