Skip to content

Support mutation for forward mode #189

Description

@oxinabox

We currently have partial support for mutation in forwards mode, (I think)
I believe mutating arrays works, but mutating structs does not.

We need two things for this:

  • MutableTangent ChainRulesCore.jl#105 a MutableTangent type
  • To never automatically insert ZeroTangent for mutable structs, and instead us a MutableTangent with no fields/all fields set to ZeroTangents (unless those fields themselves are mutable structs)

Mutation in forwards mode is much easier than reverse.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions