public struct Function<Input, Output> : ParameterlessLayer where Input : Differentiable, Output : Differentiable
Lapisan yang menyertakan fungsi terdiferensiasi khusus.
Pernyataan
public typealias TangentVector = EmptyTangentVector
Pernyataan
public typealias Body = @differentiable (Input) -> Output
Pernyataan
@noDerivative public let body: Body
Pernyataan
public init(_ body: @escaping Body)
Pernyataan
@differentiable public func callAsFunction(_ input: Input) -> Output