-
Notifications
You must be signed in to change notification settings - Fork 66
MutableTangent #105
Copy link
Copy link
Closed
Labels
Structural TangentRelated to the `Tangent` type for structured (composite) valuesRelated to the `Tangent` type for structured (composite) valuesenhancementNew feature or requestNew feature or requestforward-modeRelated to use of ChainRules for ForwardMode ADRelated to use of ChainRules for ForwardMode ADmutabilityFor issues relating to supporting mutabilityFor issues relating to supporting mutability
Metadata
Metadata
Assignees
Labels
Structural TangentRelated to the `Tangent` type for structured (composite) valuesRelated to the `Tangent` type for structured (composite) valuesenhancementNew feature or requestNew feature or requestforward-modeRelated to use of ChainRules for ForwardMode ADRelated to use of ChainRules for ForwardMode ADmutabilityFor issues relating to supporting mutabilityFor issues relating to supporting mutability
Mutable primal types need mutable differentials.
This is one of the things needed to support mutability in forwards mode.
(For reverse mode this is not enough).
We should have a
MutableCompositetype for them.Whether it is backed by a
Dict; or backed by aNamedTuplethat gets swapped out everytimesetpropertyis called, idk.