Open konstunn opened 7 years ago
I think I have found the reason. I used to diff the function as follows:
u = [2.0, 2.0]
jacobian(m.fim)(u)
Then I get the error described in my comment above. But if I do it as follows:
u = np.array([2.0, 2.0])
jacobian(m.fim)(u)
and it works. Must be stupid mistake. Sorry also for that I wasn't completely specific with my example. But I suppose and hope it's already possible to get the problem from I have provided. Feel free to ask me to provide more complete example to reproduce the problem if it is neccessary.
I have a complex function (method):
I could paste a full source text of my class, including full class definition and usage example or push it all on github and give a link.
Well, I have the following error when I try to differentiate my function with
autograd
:What might be the cause?