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
164 stars 34 forks source link

Type type error for "ComplexInput" #48

Closed ashkanee closed 6 months ago

ashkanee commented 7 months ago

When I use:

model.add(complex_layers.ComplexInput(input_shape=(input_number,), dtype=np.complex64)) where "input_number=4", it says:

ValueError: Invalid dtype: complex64

Isn't it supposed to get complex inputs or I am missing something? Thanks for the help.

NEGU93 commented 6 months ago

Hello, sorry for the late reply.

Normally you don't need to specify it, the default is complex64. If you want to specify it, try using tf.as_dtype(np.complex64) instead.

ashkanee commented 6 months ago

Thanks for the reply :) Actually the issue is similar to that of this one: issue Maybe we can close this issue so that we can focus there. Thanks for the help