wavefrontshaping / complexPyTorch

A high-level toolbox for using complex valued neural networks in PyTorch
MIT License
636 stars 150 forks source link

How to ensure that the output of a convolutional or BN layer meets Crelu's input requirements #32

Open CBZ199671 opened 1 year ago

CBZ199671 commented 1 year ago

image According to the discussion in the original article, the real and imaginary parts should be strictly positive or negative at the same time so that Crelu can satisfy the Coccy-Riemann equation, but neither the convolutional layer nor the BN layer can make the output satisfy the strictly positive or negative at the same time, please tell me how everyone solved this problem so that Crelu can satisfy the Coccy-Riemann equation. My current predictions all converge to the average of all labeled values, I guess that it's because of the unsatisfied Cauchy Riemann equation leading to negative non-conductivity, which in turn affects the gradient solution and transfer.

CBZ199671 commented 1 year ago

Anyone who can help me, I will offer my sincere blessings and respect