Contents

init(type:weights:bias:stride:dilationStride:groupSize:padding:)

Returns a new fused convolution parameters structure.

Declaration

init(type: BNNS.ConvolutionType, weights: BNNSNDArrayDescriptor, bias: BNNSNDArrayDescriptor?, stride: (x: Int, y: Int), dilationStride: (x: Int, y: Int), groupSize: Int, padding: BNNS.ConvolutionPadding)

Parameters

  • type:

    An enumeration that specifies the convolution type.

  • weights:

    The descriptor of the weights.

  • bias:

    The descriptor of the bias.

  • stride:

    The width and height increments of the input image.

  • dilationStride:

    The width and height increments between elements in the input image during convolution.

  • groupSize:

    The convolution group size.

  • padding:

    The number of zeros that the operation virtually adds to the edges of the input.