public interface MPSCNNInstanceNormalizationDataSource extends NSCopying
The MPSCNNInstanceNormalizationDataSource protocol declares the methods that an instance of MPSCNNInstanceNormalization uses to initialize the scale factors (gamma) and bias terms (beta).
| Modifier and Type | Method and Description |
|---|---|
default boolean |
_supportsSecureCoding() |
org.moe.natj.general.ptr.FloatPtr |
beta()
Return a pointer to an array containing the beta terms.
|
default MPSCNNInstanceNormalizationDataSource |
copyWithZoneDevice(org.moe.natj.general.ptr.VoidPtr zone,
MTLDevice device)
Optional copy method to create a copy of the data source for use with a new device.
|
default void |
encodeWithCoder(NSCoder aCoder)
Optional NSSecureCoding compatibility.
|
default float |
epsilon()
An optional tiny number to use to maintain numerical stability.
|
org.moe.natj.general.ptr.FloatPtr |
gamma()
Return a pointer to an array containing the gamma terms.
|
default MPSCNNInstanceNormalizationDataSource |
initWithCoder(NSCoder aDecoder)
NS_DESIGNATED_INITIALIZER
|
java.lang.String |
label()
A label that is transferred to the instance normalization filter at init time
|
default boolean |
load_objc()
Alerts the data source that the data will be needed soon
|
long |
numberOfFeatureChannels()
[@property] The number of feature channels over which to normalize.
|
default void |
purge()
Alerts the data source that the data is no longer needed
|
copyWithZoneorg.moe.natj.general.ptr.FloatPtr beta()
default MPSCNNInstanceNormalizationDataSource copyWithZoneDevice(org.moe.natj.general.ptr.VoidPtr zone, MTLDevice device)
zone - The NSZone on which to allocate.device - The device where the kernel which uses this data source will be used.default void encodeWithCoder(NSCoder aCoder)
default float epsilon()
output_image = (input_image - mean[c]) * gamma[c] / sqrt(variance[c] + epsilon) + beta[c]; Defalt value if method unavailable: FLT_MIN
org.moe.natj.general.ptr.FloatPtr gamma()
default MPSCNNInstanceNormalizationDataSource initWithCoder(NSCoder aDecoder)
java.lang.String label()
Overridden by a MPSCNNInstanceNormalizationNode.label if it is non-nil.
default boolean load_objc()
long numberOfFeatureChannels()
default void purge()
default boolean _supportsSecureCoding()