-
Notifications
You must be signed in to change notification settings - Fork 22
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
Backpropagating through "stateful" operations. #16
Comments
I've only recently started using backprop, but pretty much like ad it assumes that the computation to be differentiated is pure. I can't quite follow the internals of the library well enough to be able to tell why that is the case, though. |
I suspected that was the case. My library calls are "pure" as far as the computed values are concerned. Perhaps this is more of a feature request. I'm happy for this to be closed, if there's no plan for this to be supported. |
Maybe the MVar trick will do:
|
@jh14778 @ivanovs-4 I just recalled : you could also wrap your effects inside |
I am trying to use this library with a third party C library, but I need to carry some additional context to perform the computations.
My issue boils down to how do I integrate library calls like:
There are no standalone functions to
zero
,one
, oradd
aMatrix
without carrying theContext
.The text was updated successfully, but these errors were encountered: