Skip to content

Commit 20ca946

Browse files
authored
[AutoDiff] Add missing constraint to Array.DifferentiableView declaration (#41030)
Add `where Element: Differentiable` to `Array.DifferentiableView` declaration.
1 parent 05f2c49 commit 20ca946

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/Differentiation/ArrayDifferentiation.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ import Swift
1616
// Protocol conformances
1717
//===----------------------------------------------------------------------===//
1818

19-
// TODO(TF-938): Add `Element: Differentiable` requirement.
20-
extension Array {
19+
extension Array where Element: Differentiable {
2120
/// The view of an array as the differentiable product manifold of `Element`
2221
/// multiplied with itself `count` times.
2322
@frozen

0 commit comments

Comments
 (0)