MPSCNNNeuronPReLUNode(3)
NAME
MPSCNNNeuronPReLUNode
SYNOPSIS
#import <MPSNNGraphNodes.h>
Inherits MPSCNNNeuronNode.
Instance Methods
(nonnull instancetype) - initWithSource:aData:
(nonnull instancetype) - initWithSource:
Class Methods
(nonnull instancetype) + nodeWithSource:aData:
(nonnull instancetype) + nodeWithSource:
Additional Inherited Members
Detailed Description
A ReLU node with parameter a provided independently for each feature
channel For each pixel, applies the following function:
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
Method Documentation
- (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull)
sourceNode
- (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull)
sourceNode(NSData *__nonnull) aData
Init a node representing a MPSCNNNeuronTanH kernel For each pixel,
applies the following function:
f(x) = x if x >= 0
= aData[i] * x if x < 0, i is the index of the feature channel
Parameters:
sourceNode The MPSNNImageNode representing the source MPSImage for
the filter
aData An array of single precision floating-point alpha values to
use
Returns:
A new MPSNNFilter node for a MPSCNNNeuronTanH kernel.
+ (nonnull instancetype) nodeWithSource: (MPSNNImageNode *__nonnull)
sourceNode
+ (nonnull instancetype) nodeWithSource: (MPSNNImageNode *__nonnull)
sourceNode(NSData *__nonnull) aData
Author
Generated automatically by Doxygen for
MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-Thu2Jul 13 2017 MPSCNNNeuronPReLUNode(3)
Mac OS X 10.12.6 - Generated Sun Oct 29 18:47:27 CDT 2017