Class MPSCNNNeuronType


  • public final class MPSCNNNeuronType
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int Absolute
      < f(x) = fabs(x) API-Since: 11.0
      static int Count
      < holds the number of MPSCNNNeuronTypes API-Since: 11.0
      static int ELU
      < f(x) = x >= 0 ? x : a * (exp(x) - 1); exponential linear unit API-Since: 11.0
      static int Exponential
      < f(x) = c ^ (a * x + b) API-Since: 11.3
      static int GeLU
      < f(x) = (1.0 + erf(x * sqrt(0.5))) * 0.5 * x API-Since: 13.0
      static int HardSigmoid
      < f(x) = clamp((x * a) + b, 0, 1) API-Since: 11.0
      static int Linear
      < f(x) = a * x + b API-Since: 11.0
      static int Logarithm
      < f(x) = log_c(a * x + b) API-Since: 11.3
      static int None
      < f(x) = x API-Since: 11.0
      static int Power
      < f(x) = (a * x + b) ^ c API-Since: 11.3
      static int PReLU
      < Same as ReLU except parameter a is per channel; parameterized rectified linear unit API-Since: 11.0
      static int ReLU
      < f(x) = x >= 0 ? x : a * x; rectified linear unit API-Since: 11.0
      static int ReLUN
      < f(x) = min((x >= 0 ? x : a * x), b); clamped rectified liniear unit API-Since: 11.0
      static int Sigmoid
      < f(x) = 1 / (1 + e^-x) API-Since: 11.0
      static int SoftPlus
      < f(x) = a * log(1 + e^(b * x)) API-Since: 11.0
      static int SoftSign
      < f(x) = x / (1 + abs(x)) API-Since: 11.0
      static int TanH
      < f(x) = a * tanh(b * x) API-Since: 11.0
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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