-
Notifications
You must be signed in to change notification settings - Fork 126
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 auto check jacobian #461
Conversation
Hi @xphsean12! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
Hi @xphsean12, thanks a lot for the contribution! It would be nice if the auto check example would use the same cost function we have been using in the notebook, to avoid introducing extra complexity beyond the goals of this tutorial. Also, looking at the logic you are following, I think we should be able to add a generic utility function that would do the check against autograd jacobians automatically, and then we could just call this in the notebook, rather than explaining to users how to do this check manually on their own. If this is something you'd be interested in adding, happy to let you drive it, otherwise I can take a look at it in the next few days. We can then update this PR once that part is ready. Let me know your preference. |
@xphsean12 following up on the comment above. Let me know if adding the generic function for autochecking is something you are interested in doing. Thanks! |
Thanks for your comments and great efforts on this project. I have submitte the CLA, but I don't know how to check it. For your advices on adding a generic utility, I am confused on the implementation in several aspects:
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
For now I was just thinking of creating the utility that receives a Following on your last comment, I'll write a draft of this on my own. Is it OK if I tag you as a reviewer in the resulting PR? Thanks! |
Sure. It is my pleasure. |
Let's rebase this on main after #465 is merged and use the new utility function in the notebook to merge this PR. |
Motivation and Context
Add an example on auto-checking Jacobian by using the AutoDiffCostFunction, which requires only few changes at the original customized Cost function
How Has This Been Tested
Types of changes
Checklist