.TH "MPSCNNNeuronPReLUNode" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSCNNNeuronPReLUNode .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherits \fBMPSCNNNeuronNode\fP\&. .SS "Instance Methods" .in +1c .ti -1c .RI "(nonnull instancetype) \- \fBinitWithSource:aData:\fP" .br .ti -1c .RI "(nonnull instancetype) \- \fBinitWithSource:\fP" .br .in -1c .SS "Class Methods" .in +1c .ti -1c .RI "(nonnull instancetype) + \fBnodeWithSource:aData:\fP" .br .ti -1c .RI "(nonnull instancetype) + \fBnodeWithSource:\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP \fBA\fP ReLU node with parameter a provided independently for each feature channel For each pixel, applies the following function: .PP .nf f(x) = x if x >= 0 = aData[i] * x if x < 0, i is the index of the feature channel @param sourceNode The MPSNNImageNode representing the source MPSImage for the filter @param aData An array of single precision floating-point alpha values to use .fi .PP .SH "Method Documentation" .PP .SS "\- (nonnull instancetype) initWithSource: (\fBMPSNNImageNode\fP *__nonnull) sourceNode" .SS "\- (nonnull instancetype) \fBinitWithSource:\fP (\fBMPSNNImageNode\fP *__nonnull) sourceNode(NSData *__nonnull) aData" Init a node representing a \fBMPSCNNNeuronTanH\fP kernel For each pixel, applies the following function: .PP .nf f(x) = x if x >= 0 = aData[i] * x if x < 0, i is the index of the feature channel .fi .PP .PP \fBParameters:\fP .RS 4 \fIsourceNode\fP The \fBMPSNNImageNode\fP representing the source \fBMPSImage\fP for the filter .br \fIaData\fP An array of single precision floating-point alpha values to use .RE .PP \fBReturns:\fP .RS 4 \fBA\fP new MPSNNFilter node for a \fBMPSCNNNeuronTanH\fP kernel\&. .RE .PP .SS "+ (nonnull instancetype) nodeWithSource: (\fBMPSNNImageNode\fP *__nonnull) sourceNode" .SS "+ (nonnull instancetype) \fBnodeWithSource:\fP (\fBMPSNNImageNode\fP *__nonnull) sourceNode(NSData *__nonnull) aData" .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.