Interface MPSCNNGroupNormalizationDataSource
-
- All Superinterfaces:
NSCopying
public interface MPSCNNGroupNormalizationDataSource extends NSCopying
[@protocol] MPSCNNGroupNormalizationDataSource The MPSCNNGroupNormalizationDataSource protocol declares the methods that an group of MPSCNNGroupNormalization uses to initialize the scale factors (gamma) and bias terms (beta).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean_supportsSecureCoding()org.moe.natj.general.ptr.FloatPtrbeta()Return a pointer to an array containing the beta terms.default java.lang.ObjectcopyWithZoneDevice(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 voidencodeWithCoder(NSCoder aCoder)Optional NSSecureCoding compatibility.default floatepsilon()An optional tiny number to use to maintain numerical stability.org.moe.natj.general.ptr.FloatPtrgamma()Return a pointer to an array containing the gamma terms.default java.lang.ObjectinitWithCoder(NSCoder aDecoder)NS_DESIGNATED_INITIALIZERjava.lang.Stringlabel()A label that is transferred to the group normalization filter at init time Overridden by a MPSCNNGroupNormalizationNode.label if it is non-nil.longnumberOfFeatureChannels()[@property] The number of feature channels that are normalized.longnumberOfGroups()[@property] The number of groups used.voidsetNumberOfGroups(long value)[@property] The number of groups used.-
Methods inherited from interface apple.foundation.protocol.NSCopying
copyWithZone
-
-
-
-
Method Detail
-
beta
org.moe.natj.general.ptr.FloatPtr beta()
Return a pointer to an array containing the beta terms. Must have numberOfFeatureChannels values since scaling is done per feature channel.
-
copyWithZoneDevice
default java.lang.Object 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.- Parameters:
zone- The NSZone on which to allocate.device- The device where the kernel which uses this data source will be used.- Returns:
- A pointer to a copy of this data source.
-
encodeWithCoder
default void encodeWithCoder(NSCoder aCoder)
Optional NSSecureCoding compatibility.
-
epsilon
default float epsilon()
An optional tiny number to use to maintain numerical stability. output_image = (input_image - mean[c]) * gamma[c] / sqrt(variance[c] + epsilon) + beta[c]; Defalt value if method unavailable: FLT_MIN
-
gamma
org.moe.natj.general.ptr.FloatPtr gamma()
Return a pointer to an array containing the gamma terms. Must have numberOfFeatureChannels values since scaling is done per feature channel.
-
initWithCoder
default java.lang.Object initWithCoder(NSCoder aDecoder)
NS_DESIGNATED_INITIALIZER
-
label
java.lang.String label()
A label that is transferred to the group normalization filter at init time Overridden by a MPSCNNGroupNormalizationNode.label if it is non-nil.
-
numberOfFeatureChannels
long numberOfFeatureChannels()
[@property] The number of feature channels that are normalized.
-
numberOfGroups
long numberOfGroups()
[@property] The number of groups used. numberOfFeatureChannels/numberOfGroups channels are normalized together.
-
setNumberOfGroups
void setNumberOfGroups(long value)
[@property] The number of groups used. numberOfFeatureChannels/numberOfGroups channels are normalized together.
-
_supportsSecureCoding
default boolean _supportsSecureCoding()
-
-