Package ai.djl.nn
Enum Parameter.Type
- java.lang.Object
-
- java.lang.Enum<Parameter.Type>
-
- ai.djl.nn.Parameter.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Parameter.Type>
- Enclosing class:
- Parameter
public static enum Parameter.Type extends java.lang.Enum<Parameter.Type>
Enumerates the types ofParameter
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BETA
BIAS
GAMMA
OTHER
RUNNING_MEAN
RUNNING_VAR
WEIGHT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Initializer
getInitializer()
Gets theInitializer
of thisParameterType
.static Parameter.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Parameter.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WEIGHT
public static final Parameter.Type WEIGHT
-
BIAS
public static final Parameter.Type BIAS
-
GAMMA
public static final Parameter.Type GAMMA
-
BETA
public static final Parameter.Type BETA
-
RUNNING_MEAN
public static final Parameter.Type RUNNING_MEAN
-
RUNNING_VAR
public static final Parameter.Type RUNNING_VAR
-
OTHER
public static final Parameter.Type OTHER
-
-
Method Detail
-
values
public static Parameter.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Parameter.Type c : Parameter.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Parameter.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getInitializer
public Initializer getInitializer()
Gets theInitializer
of thisParameterType
.- Returns:
- the
Initializer
of thisParameterType
-
-