Contents

init(i_desc:o_desc:rate:seed:control:)

Returns a new dropout layer parameters structure from the specified parameters.

Declaration

init(i_desc: BNNSNDArrayDescriptor, o_desc: BNNSNDArrayDescriptor, rate: Float, seed: UInt32, control: UInt8)

Parameters

  • i_desc:

    The descriptor of the input.

  • o_desc:

    The descriptor of the output.

  • rate:

    The probability that the layer drops out an element or a group of elements.

  • seed:

    The seed for the random number generator that the layer ignores if zero.

  • control:

    An 8-bit bit mask that indicates the dimension of the grouping of the dropout decision.

Discussion

See Also

Initializers