NEGU93/cvnn

Type type error for "ComplexInput"

ashkanee opened this issue · 2 comments

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.

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.

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