Open Top-Gun-Maxverick opened 2 months ago
Thanks for opening the issue @Top-Gun-Maxverick . Looks like this same problem was also discussed in our forum:
https://discuss.pennylane.ai/t/keraslayer-error-parameter-dynamic-true/4253/4
It seems like the solution for now is downgrading tensorflow.
We have been investigating adding Keras 3 support, but have not gotten it working quite yet.
Expected behavior
Successful creation of a
KerasLayer
Actual behavior
ValueError: Unrecognized keyword arguments passed to KerasLayer: {'dynamic': True}
Additional information
This issue arises when using Pennylane version 0.30+ and Keras 3.
Source code
Tracebacks
System information
Existing GitHub issues