Enum Activations

java.lang.Object
java.lang.Enum<Activations>
org.tensorflow.framework.activations.Activations
All Implemented Interfaces:
Serializable, Comparable<Activations>

public enum Activations extends Enum<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 Details

  • Method Details

    • values

      public static Activations[] 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

      public static Activations valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static Activations of(String name)
      Gets the ActivationType based on the TensorFlow name for the activation

      NOTE: 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

      public String getTensorFlowName()
      Gets the activation name as known to the TensorFlow engine.
      Returns:
      the activation name as known to the TensorFlow engine.
    • getInstance

      public Activation getInstance()
      Gets an Activation Instance
      Returns:
      the new Activation Instance
    • getInstance

      public Activation getInstance(Map<String,Object> config)
      Gets an Activation Instance
      Parameters:
      config - a Map object containing the Activation's state
      Returns:
      the new Activation Instance