Enum OptimizerOptions.Level

java.lang.Object
java.lang.Enum<OptimizerOptions.Level>
org.tensorflow.proto.OptimizerOptions.Level
All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<OptimizerOptions.Level>
Enclosing class:
OptimizerOptions

public static enum OptimizerOptions.Level extends Enum<OptimizerOptions.Level> implements ProtocolMessageEnum
Optimization level
Protobuf enum tensorflow.OptimizerOptions.Level
  • Enum Constant Details

  • Field Details

    • L1_VALUE

      public static final int L1_VALUE
      L1 is the default level.
      Optimization performed at L1 :
      1. Common subexpression elimination
      2. Constant folding
      
      L1 = 0;
      See Also:
    • L0_VALUE

      public static final int L0_VALUE
      No optimizations
      
      L0 = -1;
      See Also:
  • Method Details

    • values

      public static OptimizerOptions.Level[] 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 OptimizerOptions.Level 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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface Internal.EnumLite
      Specified by:
      getNumber in interface ProtocolMessageEnum
    • valueOf

      @Deprecated public static OptimizerOptions.Level valueOf(int value)
      Deprecated.
      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:
      value - 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
    • forNumber

      public static OptimizerOptions.Level forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static Internal.EnumLiteMap<OptimizerOptions.Level> internalGetValueMap()
    • getValueDescriptor

      public final Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface ProtocolMessageEnum
    • getDescriptorForType

      public final Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface ProtocolMessageEnum
    • getDescriptor

      public static final Descriptors.EnumDescriptor getDescriptor()
    • 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:
      desc - 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