Skip to content
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

Problem with Interpolation Autograd Friendly #568

Open
NicolasBlancoV opened this issue May 11, 2021 · 0 comments
Open

Problem with Interpolation Autograd Friendly #568

NicolasBlancoV opened this issue May 11, 2021 · 0 comments

Comments

@NicolasBlancoV
Copy link

Hi

First of all, I have a function and I want to derivate it using the "grad" function of Autograd. The input respect to which I want to derivate is a matrix (20x10).

In order to obtain the output I first need to use this matrix to make a bivariate interpolation, in particular a bivariate spline cubic in one axis and linear in the other one. For this I have used several functions of scipy (charging import autograd.scipy.special as sc and then sc.scipy.interpolate....) and it works well until I use the "grad" functions, which returns me errors as if those functions were not Autograd-friendly. I have used RectBivariateSpline, SmoothBivariateSpline, Bisplrep, and in everyone I obtain errors when I use grad.

I want to know if there is any way of doing bivariate interpolation (bilinear if it is the only one avaliable) which works with autograd or I will have to implement it by myself.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@NicolasBlancoV and others