Skip to content

Support mutation for forward mode #189

Closed
@oxinabox

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.

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