Contents

init(arithmetic_function:arithmetic_function_fields:activation:)

Returns a new arithmetic layer parameters structure.

Declaration

init(arithmetic_function: BNNSArithmeticFunction, arithmetic_function_fields: UnsafeMutableRawPointer, activation: BNNSActivation)

Parameters

  • arithmetic_function:

    The arithmetic function.

  • arithmetic_function_fields:

    A pointer to an arithmetic function field structure.

  • activation:

    The activation function that the layer applies to the output.