Skip to content

Rewrite usages of compiler-synthesized Differentiable.zeroTangentVector #261

@dan-zheng

Description

@dan-zheng

Protocol requirement Differentiable.zeroTangentVectorInitializer and computed property Differentiable.zeroTangentVector are being removed in swiftlang/swift#35329 as a simplification.

"Per-instance zeros" are no longer a concept, there is only the "static universal zero" TangentVector.zero for all tangent vector types.

There are some updates of Differentiable.zeroTangentVector in SwiftFusion. This issue tracks updating those occurrences to use something else (manual implementation of <type>.zeroTangentVector via directly calling Tensor(zeros:on:), etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions