NEGU93 / cvnn

Library to help implement a complex-valued neural network (cvnn) using tensorflow as back-end
https://complex-valued-neural-networks.readthedocs.io/
MIT License
160 stars 33 forks source link

`fan_in` is None after a layer with `zrelu` activation #13

Closed jonasdaugalas closed 3 years ago

jonasdaugalas commented 3 years ago

Hi @NEGU93 ,

Thanks again for keeping this package updated.

I have noticed an issue with the zrelu activation. The problem is that a layer (in sequential model) that goes after zrelu activation fails to initialize with an error saying that fan_in is of NoneType. It seems fine with other activation functions.

See here a short notebook reproducing the issue: https://gist.github.com/jonasdaugalas/e8a3c44055321f706081b4c4374597d6

Do you have an idea what could be wrong here?

NEGU93 commented 3 years ago

Thank you for the report. On a quick look I already know why it happens, but the fix is not so easy. I will see if I can fix it this weekend.

Thank you for the report and the gist to reproduce the issue quickly!

NEGU93 commented 3 years ago

The issue should be solved from version 1.1.64.

Thank you for reporting the issue.