borglab / borglab/SwiftFusion

Rewrite usages of compiler-synthesized `Differentiable.zeroTangentVector`

Open
#261 4 comments 1 reaction 0 assignees View on GitHub
good first issue help wanted
Dominant language
Swift
Stars
118
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Protocol requirement `Differentiable.zeroTangentVectorInitializer` and computed property `Differentiable.zeroTangentVector` are being removed in https://github.com/apple/swift/pull/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 `.zeroTangentVector` via directly calling `Tensor(zeros:on:)`, etc.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.