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) API-Since: 11.0static intCount< holds the number of MPSCNNNeuronTypes API-Since: 11.0static intELU< f(x) = x >= 0 ? x : a * (exp(x) - 1); exponential linear unit API-Since: 11.0static intExponential< f(x) = c ^ (a * x + b) API-Since: 11.3static intGeLU< f(x) = (1.0 + erf(x * sqrt(0.5))) * 0.5 * x API-Since: 13.0static intHardSigmoid< f(x) = clamp((x * a) + b, 0, 1) API-Since: 11.0static intLinear< f(x) = a * x + b API-Since: 11.0static intLogarithm< f(x) = log_c(a * x + b) API-Since: 11.3static intNone< f(x) = x API-Since: 11.0static intPower< f(x) = (a * x + b) ^ c API-Since: 11.3static intPReLU< Same as ReLU except parameter a is per channel; parameterized rectified linear unit API-Since: 11.0static intReLU< f(x) = x >= 0 ? x : a * x; rectified linear unit API-Since: 11.0static intReLUN< f(x) = min((x >= 0 ? x : a * x), b); clamped rectified liniear unit API-Since: 11.0static intSigmoid< f(x) = 1 / (1 + e^-x) API-Since: 11.0static intSoftPlus< f(x) = a * log(1 + e^(b * x)) API-Since: 11.0static intSoftSign< f(x) = x / (1 + abs(x)) API-Since: 11.0static intTanH< f(x) = a * tanh(b * x) API-Since: 11.0
-
-
-
Field Detail
-
None
public static final int None
< f(x) = x API-Since: 11.0- See Also:
- Constant Field Values
-
ReLU
public static final int ReLU
< f(x) = x >= 0 ? x : a * x; rectified linear unit API-Since: 11.0- See Also:
- Constant Field Values
-
Linear
public static final int Linear
< f(x) = a * x + b API-Since: 11.0- See Also:
- Constant Field Values
-
Sigmoid
public static final int Sigmoid
< f(x) = 1 / (1 + e^-x) API-Since: 11.0- See Also:
- Constant Field Values
-
HardSigmoid
public static final int HardSigmoid
< f(x) = clamp((x * a) + b, 0, 1) API-Since: 11.0- See Also:
- Constant Field Values
-
TanH
public static final int TanH
< f(x) = a * tanh(b * x) API-Since: 11.0- See Also:
- Constant Field Values
-
Absolute
public static final int Absolute
< f(x) = fabs(x) API-Since: 11.0- See Also:
- Constant Field Values
-
SoftPlus
public static final int SoftPlus
< f(x) = a * log(1 + e^(b * x)) API-Since: 11.0- See Also:
- Constant Field Values
-
SoftSign
public static final int SoftSign
< f(x) = x / (1 + abs(x)) API-Since: 11.0- See Also:
- Constant Field Values
-
ELU
public static final int ELU
< f(x) = x >= 0 ? x : a * (exp(x) - 1); exponential linear unit API-Since: 11.0- See Also:
- Constant Field Values
-
PReLU
public static final int PReLU
< Same as ReLU except parameter a is per channel; parameterized rectified linear unit API-Since: 11.0- See Also:
- Constant Field Values
-
ReLUN
public static final int ReLUN
< f(x) = min((x >= 0 ? x : a * x), b); clamped rectified liniear unit API-Since: 11.0- See Also:
- Constant Field Values
-
Count
public static final int Count
< holds the number of MPSCNNNeuronTypes API-Since: 11.0- See Also:
- Constant Field Values
-
Power
public static final int Power
< f(x) = (a * x + b) ^ c API-Since: 11.3- See Also:
- Constant Field Values
-
Exponential
public static final int Exponential
< f(x) = c ^ (a * x + b) API-Since: 11.3- See Also:
- Constant Field Values
-
Logarithm
public static final int Logarithm
< f(x) = log_c(a * x + b) API-Since: 11.3- See Also:
- Constant Field Values
-
GeLU
public static final int GeLU
< f(x) = (1.0 + erf(x * sqrt(0.5))) * 0.5 * x API-Since: 13.0- See Also:
- Constant Field Values
-
-