New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Keras layers support #529
Conversation
Codecov Report
@@ Coverage Diff @@
## master #529 +/- ##
=======================================
Coverage 98.89% 98.89%
=======================================
Files 82 82
Lines 5075 5075
=======================================
Hits 5019 5019
Misses 56 56 Continue to review full report at Codecov.
|
Co-Authored-By: Josh Izaac <josh146@gmail.com> Co-Authored-By: Maria Schuld <mariaschuld@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @josh146! Should have answered your questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
🎆 |
This PR provides a
KerasLayer
class for converting a PennyLane QNode to a Keras layer, which can then be used within standard Keras features such as theModel
/Sequential
models.Currently, the following is not added:
func.sig
attribute available in the QNodeCollection and inqml.map
.Providing this functionality would help solve #166 and is also discussed in #133, https://discuss.pennylane.ai/t/qnode-inside-keras-layer/335/3 and https://discuss.pennylane.ai/t/creating-and-saving-models/46.