Instance Method

initWithDevice:convolutionData:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:

Initializes a fully connected convolution layer with binary weights.

Declaration

- (instancetype)initWithDevice:(id<MTLDevice>)device convolutionData:(id<MPSCNNConvolutionDataSource>)convolutionData outputBiasTerms:(const float *)outputBiasTerms outputScaleTerms:(const float *)outputScaleTerms inputBiasTerms:(const float *)inputBiasTerms inputScaleTerms:(const float *)inputScaleTerms type:(MPSCNNBinaryConvolutionType)type flags:(MPSCNNBinaryConvolutionFlags)flags;