8000 GitHub · Where software is built
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Public API for accessing underlying value of BVar #26
Closed
@gaurav-arya

Description

@gaurav-arya

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0