-
Notifications
You must be signed in to change notification settings - Fork 133
Grad error message #721
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
Grad error message #721
Conversation
…o the nlinalg file
@ricardoV94 I still seem to getting all my old commits on the new branch I used. Since this is just a one-line fix for the issue, can we just go through the changes here and finish this. I'll make a new PR for a different issue after this and make sure these mistakes dont happen |
@@ -357,7 +358,10 @@ def grad( | |||
.. [1] Giles, Mike. 2008. “An Extended Collection of Matrix Derivative Results for Forward and Reverse Mode Automatic Differentiation.” | |||
|
|||
""" | |||
raise NotImplementedError() | |||
# raise NotImplementedError() |
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 is my suggestion for a simpler solution
# raise NotImplementedError() | |
raise NotImplementedError(f"grad not implemented for Op {self}") |
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.
Also your implementation was wrong because it assumed there is a single input
Description
Created a new branch and added
grad_not_implemented
for a helpful error messageRelated Issue
Checklist
Type of change