Open alexanderwhatley opened 6 years ago
Accessing _value
fails unexpectedly for me sometimes. This seems like a really common operation (comes up all the time in reinforcement learning, EM-style algorithms, etc.) where you do not want gradients to propagate for certain operations. Is there a correct way to do this?
I'm using autograd together with scipy's odeint in a function of the form
Right now, I have to access coeffs._value to get the numpy array to pass in, or else scipy throws an error message, as coeffs is turned into an Arraybox object. I think it would make sense to add a to_numpy or to_array function to Arraybox so I would not have to access a private property.