-
Notifications
You must be signed in to change notification settings - Fork 56
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
Optimizing the locations of the Jacobians #300
Comments
Hi @Ludvins, do you have a small code snippet that explains what you are trying to do? This would be valuable to figure out a solution. Best, |
Sure, this is a function from the Laplace library that computes the Jacobian of a model w.r.t to the parameters given an input source:
I am using the output of this function evaluated on a set of trainable locations
I have made a work around using
|
Hi @Ludvins, From what I understand, your setup looks like this. You have a function A few questions;
|
Hi @fKunstner The framework is similar to what you pointed in your first question, I will take a look at jvp thank you so much. |
Got it, assuming the other difference is that If you only want to use this matrix by doing matrix-vector products, ie computing Re: how to do it, the sample code at the end of this post might help. ! Caution: I haven't checked that the return values are correct. Check that the values match some other implementations, see for examples the checks in the
Interesting, I've noticed this. For the technical info @f-dangel , trying to use
You should be able to get the gradient through
This is the correct workaround AFAIK. It is a warning because you need to be careful with de-allocating memory (and
|
Hi!
Thanks for the contributions!! I am facing a weird sutiation in which I am computing the jacobians of a model w.r.t to the parameters (which are fixed and cannot be tuned) and I want to optimize the input locations of those jacobians, lets say the x variables. Two different things are happening to me when trying to to this:
Is there any way I can fix this?
The text was updated successfully, but these errors were encountered: