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

Made the empty tangent vector initializer public. #536

Merged
merged 10 commits into from
Oct 24, 2019
2 changes: 2 additions & 0 deletions Sources/TensorFlow/Layer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public struct EmptyTangentVector: EuclideanDifferentiable, VectorProtocol, Eleme
public typealias VectorSpaceScalar = Float
public typealias TangentVector = Self

public init() {}

public func adding(_ x: Float) -> EmptyTangentVector { self }
public mutating func add(_ x: Float) {}
public func subtracting(_ x: Float) -> EmptyTangentVector { self }
Expand Down