MPSCNNNeuron(3) MetalPerformanceShaders.framework MPSCNNNeuron(3)
NAME
MPSCNNNeuron
SYNOPSIS
#import <MPSCNNConvolution.h>
Inherits MPSCNNKernel.
Inherited by MPSCNNNeuronAbsolute, MPSCNNNeuronELU,
MPSCNNNeuronHardSigmoid, MPSCNNNeuronLinear, MPSCNNNeuronPReLU,
MPSCNNNeuronReLU, MPSCNNNeuronReLUN, MPSCNNNeuronSigmoid,
MPSCNNNeuronSoftPlus, MPSCNNNeuronSoftSign, and MPSCNNNeuronTanH.
Instance Methods
(nullable instancetype) - initWithCoder:device:
Additional Inherited Members
Detailed Description
This depends on Metal.framework This filter applies a neuron
activation function. You must use one of the sub-classes of
MPSCNNNeuron
Method Documentation
- (nullable instancetype) initWithCoder: (NSCoder *__nonnull)
aDecoder(nonnull id< MTLDevice >) device
NSSecureCoding compatability While the standard
NSSecureCoding/NSCoding method -initWithCoder: should work, since the
file can't know which device your data is allocated on, we have to
guess and may guess incorrectly. To avoid that problem, use
initWithCoder:device instead.
Parameters:
aDecoder The NSCoder subclass with your serialized MPSKernel
device The MTLDevice on which to make the MPSKernel
Returns:
A new MPSKernel object, or nil if failure.
Reimplemented from MPSCNNKernel.
Author
Generated automatically by Doxygen for
MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-Thu2Jul 13 2017 MPSCNNNeuron(3)
Mac OS X 10.13.1 - Generated Mon Nov 6 18:13:49 CST 2017