Enum 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 levelProtobuf enum
tensorflow.OptimizerOptions.Level-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic OptimizerOptions.LevelforNumber(int value) static final Descriptors.EnumDescriptorfinal intstatic OptimizerOptions.LevelvalueOf(int value) Deprecated.static OptimizerOptions.LevelReturns the enum constant of this type with the specified name.static OptimizerOptions.LevelReturns the enum constant of this type with the specified name.static OptimizerOptions.Level[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
L1
L1 is the default level. Optimization performed at L1 : 1. Common subexpression elimination 2. Constant folding
L1 = 0; -
L0
No optimizations
L0 = -1; -
UNRECOGNIZED
-
-
Field Details
-
L1_VALUE
public static final int L1_VALUEL1 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_VALUENo optimizations
L0 = -1;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
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 nameNullPointerException- if the argument is null
-