You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For short, tf2.16.1 with newly introduced keras 3 seems not supporting the input tensor for a layer in complex dtype
Relevant log output
[usr/local/lib/python3.10/dist-packages/keras/src/backend/common/variables.py](https://localhost:8080/#) in standardize_dtype(dtype)
428
429 if dtype not in dtypes.ALLOWED_DTYPES:
--> 430 raise ValueError(f"Invalid dtype: {dtype}")
431 return dtype
432
ValueError: Invalid dtype: complex64
It would be better that keras3 can support complex valued input for layers as keras did before. Complex valued input is very common in quantum machine learning use cases.
The text was updated successfully, but these errors were encountered:
Updated complex dtype for ALLOWED_DTYPES=complex64,complex128 in the documentation. Please have a look at the changes and do the needful. Thank you.
Fixeskeras-team#19860
See the original issue in tensorflow's repo: tensorflow/tensorflow#65306
Current behavior?
The following code works well for tf2.15 but fails tf2.16.1 with the introduction of keras3,
For short, tf2.16.1 with newly introduced keras 3 seems not supporting the input tensor for a layer in complex dtype
Relevant log output
It would be better that keras3 can support complex valued input for layers as keras did before. Complex valued input is very common in quantum machine learning use cases.
The text was updated successfully, but these errors were encountered: