EmptyTangentVector

public struct EmptyTangentVector: EuclideanDifferentiable, VectorProtocol, ElementaryFunctions,
                                  PointwiseMultiplicative, KeyPathIterable

An empty struct representing empty TangentVectors for parameterless layers.

  • Declaration

    public typealias VectorSpaceScalar = Float
  • Declaration

    public typealias TangentVector = `Self`
  • Declaration

    public init()
  • Declaration

    public func adding(_ x: Float) -> EmptyTangentVector
  • Declaration

    public mutating func add(_ x: Float)
  • Declaration

    public func subtracting(_ x: Float) -> EmptyTangentVector
  • Declaration

    public mutating func subtract(_ x: Float)
  • Declaration

    public func scaled(by scalar: Float) -> EmptyTangentVector
  • Declaration

    public mutating func scale(by scalar: Float)