@Namespace(value="nvinfer1") public static enum nvinfer.ActivationType extends Enum<nvinfer.ActivationType>
Enum Constant and Description |
---|
kCLIP
Clip activation: max(alpha, min(beta, x))
|
kELU
Elu activation: x>=0 ? x : alpha * (exp(x) - 1).
|
kHARD_SIGMOID
Hard sigmoid activation: max(0, min(1, alpha*x+beta))
|
kLEAKY_RELU
LeakyRelu activation: x>=0 ? x : alpha * x.
|
kRELU
Rectified linear activation.
|
kSCALED_TANH
Scaled tanh activation: alpha*tanh(beta*x)
|
kSELU
Selu activation: x>0 ? beta * x : beta * (alpha*exp(x) - alpha)
|
kSIGMOID
Sigmoid activation.
|
kSOFTPLUS
Parametric softplus activation: alpha*log(exp(beta*x)+1)
|
kSOFTSIGN
Softsign activation: x / (1+|x|)
|
kTANH
TanH activation.
|
kTHRESHOLDED_RELU
Thresholded ReLU activation: x>alpha ? x : 0
|
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
nvinfer.ActivationType |
intern() |
String |
toString() |
static nvinfer.ActivationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static nvinfer.ActivationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final nvinfer.ActivationType kRELU
public static final nvinfer.ActivationType kSIGMOID
public static final nvinfer.ActivationType kTANH
public static final nvinfer.ActivationType kLEAKY_RELU
public static final nvinfer.ActivationType kELU
public static final nvinfer.ActivationType kSELU
public static final nvinfer.ActivationType kSOFTSIGN
public static final nvinfer.ActivationType kSOFTPLUS
public static final nvinfer.ActivationType kCLIP
public static final nvinfer.ActivationType kHARD_SIGMOID
public static final nvinfer.ActivationType kSCALED_TANH
public static final nvinfer.ActivationType kTHRESHOLDED_RELU
public static nvinfer.ActivationType[] values()
for (nvinfer.ActivationType c : nvinfer.ActivationType.values()) System.out.println(c);
public static nvinfer.ActivationType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic nvinfer.ActivationType intern()
public String toString()
toString
in class Enum<nvinfer.ActivationType>
Copyright © 2024. All rights reserved.