Description
Does this package have any public API for accessing the underlying value inside a BVar
, dropping all of the tape information? i.e. what would _bvVal
would do; bvConst
(which itself is not even public) is close, but I would want to pattern match on all BVar
's, not just constant ones. (I need this for a package I'm working on that relies on backprop
. The reason being that, for my application, sometimes we know that a BVar
will always end up with a 0 gradient, up to floating point error, even though this information is not surfaced at the type level. This value is then used for a lot of complicated subsequent operations, which in theory could all be lifted to work with BVar
's, but in practice it would be much easier to just apply them to the underlying value.
If no such public API exists, and you are open to a PR, I would be happy to make one so that my package can cleanly depend on backprop
when I release it.)