Enum Model.AutotuneAlgorithm
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<Model.AutotuneAlgorithm>
- Enclosing class:
Model
public static enum Model.AutotuneAlgorithm
extends Enum<Model.AutotuneAlgorithm>
implements ProtocolMessageEnum
Algorithm used for model autotuning optimization.Protobuf enum
tensorflow.data.model.AutotuneAlgorithm-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDEFAULT = 0;GRADIENT_DESCENT = 2;HILL_CLIMB = 1;MAX_PARALLELISM = 3;STAGE_BASED = 4; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDEFAULT = 0;static final intGRADIENT_DESCENT = 2;static final intHILL_CLIMB = 1;static final intMAX_PARALLELISM = 3;static final intSTAGE_BASED = 4; -
Method Summary
Modifier and TypeMethodDescriptionstatic Model.AutotuneAlgorithmforNumber(int value) static final Descriptors.EnumDescriptorfinal intstatic Model.AutotuneAlgorithmvalueOf(int value) Deprecated.static Model.AutotuneAlgorithmReturns the enum constant of this type with the specified name.static Model.AutotuneAlgorithmReturns the enum constant of this type with the specified name.static Model.AutotuneAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
DEFAULT = 0; -
HILL_CLIMB
HILL_CLIMB = 1; -
GRADIENT_DESCENT
GRADIENT_DESCENT = 2; -
MAX_PARALLELISM
MAX_PARALLELISM = 3; -
STAGE_BASED
STAGE_BASED = 4; -
UNRECOGNIZED
-
-
Field Details
-
DEFAULT_VALUE
public static final int DEFAULT_VALUEDEFAULT = 0;- See Also:
-
HILL_CLIMB_VALUE
public static final int HILL_CLIMB_VALUEHILL_CLIMB = 1;- See Also:
-
GRADIENT_DESCENT_VALUE
public static final int GRADIENT_DESCENT_VALUEGRADIENT_DESCENT = 2;- See Also:
-
MAX_PARALLELISM_VALUE
public static final int MAX_PARALLELISM_VALUEMAX_PARALLELISM = 3;- See Also:
-
STAGE_BASED_VALUE
public static final int STAGE_BASED_VALUESTAGE_BASED = 4;- 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
-