Enum Activations
- All Implemented Interfaces:
Serializable, Comparable<Activations>
The Enumerations for creating Activations based an activation name, with either an empty
constructor or a constructor that takes a Map object that contains the Activation's state.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGets an Activation InstancegetInstance(Map<String, Object> config) Gets an Activation InstanceGets the activation name as known to the TensorFlow engine.static ActivationsGets the ActivationType based on the TensorFlow name for the activationstatic ActivationsReturns the enum constant of this type with the specified name.static Activations[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ELU
-
EXPONENTIAL
-
GELU
-
HARD_SIGMOID
-
LINEAR
-
RELU
-
SELU
-
SIGMOID
-
SOFTMAX
-
SOFTPLUS
-
SOFTSIGN
-
SWISH
-
TANH
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
of
Gets the ActivationType based on the TensorFlow name for the activationNOTE: this is similar to valueOf, but name can be either case, upper or lower. The TensorFlow engine produces names in lowwer case.
- Parameters:
name- the TensorFlow name for the activation- Returns:
- the ActivationType
-
getTensorFlowName
Gets the activation name as known to the TensorFlow engine.- Returns:
- the activation name as known to the TensorFlow engine.
-
getInstance
-
getInstance
Gets an Activation Instance- Parameters:
config- a Map object containing the Activation's state- Returns:
- the new Activation Instance
-