Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit b8ae57e

Browse files
authored
Made the empty tangent vector initializer public. (#536)
1 parent 11ed29d commit b8ae57e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/TensorFlow/Layer.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public struct EmptyTangentVector: EuclideanDifferentiable, VectorProtocol, Eleme
5757
public typealias VectorSpaceScalar = Float
5858
public typealias TangentVector = Self
5959

60+
public init() {}
61+
6062
public func adding(_ x: Float) -> EmptyTangentVector { self }
6163
public mutating func add(_ x: Float) {}
6264
public func subtracting(_ x: Float) -> EmptyTangentVector { self }

0 commit comments

Comments
 (0)