init(i_desc:w_desc:o_desc:bias:activation:)
Returns a new fully connected layer parameters structure from the specified parameters.
Declaration
init(i_desc: BNNSNDArrayDescriptor, w_desc: BNNSNDArrayDescriptor, o_desc: BNNSNDArrayDescriptor, bias: BNNSNDArrayDescriptor, activation: BNNSActivation)Parameters
- i_desc:
The descriptor of the input.
- w_desc:
The descriptor of the weights.
- o_desc:
The descriptor of the output.
- bias:
The descriptor of the bias.
- activation:
The activation function that the layer applies to the output.