Module

public protocol Module: EuclideanDifferentiable, KeyPathIterable
    where TangentVector: VectorProtocol & ElementaryFunctions &
                         PointwiseMultiplicative & KeyPathIterable
  • The input type of the layer.

    Declaration

    associatedtype Input
  • The output type of the layer.

    Declaration

    associatedtype Output : Differentiable
  • Returns the output obtained from applying the layer to the given input.

    Declaration

    @differentiable
    func callAsFunction(_ input: Input) -> Output

    Parameters

    input

    The input to the layer.

    Return Value

    The output.