Class MPSCNNNeuronType
- java.lang.Object
-
- apple.metalperformanceshaders.enums.MPSCNNNeuronType
-
public final class MPSCNNNeuronType extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intAbsolute< f(x) = fabs(x)static intCount< holds the number of MPSCNNNeuronTypesstatic intELU< f(x) = x >= 0 ?static intExponential< f(x) = c ^ (a * x + b)static intGeLU< f(x) = (1.0 + erf(x * sqrt(0.5))) * 0.5 * xstatic intHardSigmoid< f(x) = clamp((x * a) + b, 0, 1)static intLinear< f(x) = a * x + bstatic intLogarithm< f(x) = log_c(a * x + b)static intNone< f(x) = xstatic intPower< f(x) = (a * x + b) ^ cstatic intPReLU< Same as ReLU except parameter a is per channel; parameterized rectified linear unitstatic intReLU< f(x) = x >= 0 ?static intReLUN< f(x) = min((x >= 0 ?static intSigmoid< f(x) = 1 / (1 + e^-x)static intSoftPlus< f(x) = a * log(1 + e^(b * x))static intSoftSign< f(x) = x / (1 + abs(x))static intTanH< f(x) = a * tanh(b * x)
-
-
-
Field Detail
-
None
public static final int None
< f(x) = x- See Also:
- Constant Field Values
-
ReLU
public static final int ReLU
< f(x) = x >= 0 ? x : a * x; rectified linear unit- See Also:
- Constant Field Values
-
Linear
public static final int Linear
< f(x) = a * x + b- See Also:
- Constant Field Values
-
Sigmoid
public static final int Sigmoid
< f(x) = 1 / (1 + e^-x)- See Also:
- Constant Field Values
-
HardSigmoid
public static final int HardSigmoid
< f(x) = clamp((x * a) + b, 0, 1)- See Also:
- Constant Field Values
-
TanH
public static final int TanH
< f(x) = a * tanh(b * x)- See Also:
- Constant Field Values
-
Absolute
public static final int Absolute
< f(x) = fabs(x)- See Also:
- Constant Field Values
-
SoftPlus
public static final int SoftPlus
< f(x) = a * log(1 + e^(b * x))- See Also:
- Constant Field Values
-
SoftSign
public static final int SoftSign
< f(x) = x / (1 + abs(x))- See Also:
- Constant Field Values
-
ELU
public static final int ELU
< f(x) = x >= 0 ? x : a * (exp(x) - 1); exponential linear unit- See Also:
- Constant Field Values
-
PReLU
public static final int PReLU
< Same as ReLU except parameter a is per channel; parameterized rectified linear unit- See Also:
- Constant Field Values
-
ReLUN
public static final int ReLUN
< f(x) = min((x >= 0 ? x : a * x), b); clamped rectified liniear unit- See Also:
- Constant Field Values
-
Count
public static final int Count
< holds the number of MPSCNNNeuronTypes- See Also:
- Constant Field Values
-
Power
public static final int Power
< f(x) = (a * x + b) ^ c- See Also:
- Constant Field Values
-
Exponential
public static final int Exponential
< f(x) = c ^ (a * x + b)- See Also:
- Constant Field Values
-
Logarithm
public static final int Logarithm
< f(x) = log_c(a * x + b)- See Also:
- Constant Field Values
-
GeLU
public static final int GeLU
< f(x) = (1.0 + erf(x * sqrt(0.5))) * 0.5 * x- See Also:
- Constant Field Values
-
-