Package org.tensorflow.framework
Enum RewriterConfig.NumIterationsType
- java.lang.Object
-
- java.lang.Enum<RewriterConfig.NumIterationsType>
-
- org.tensorflow.framework.RewriterConfig.NumIterationsType
-
- All Implemented Interfaces:
Serializable,Comparable<RewriterConfig.NumIterationsType>,org.nd4j.shade.protobuf.Internal.EnumLite,org.nd4j.shade.protobuf.ProtocolMessageEnum
- Enclosing class:
- RewriterConfig
public static enum RewriterConfig.NumIterationsType extends Enum<RewriterConfig.NumIterationsType> implements org.nd4j.shade.protobuf.ProtocolMessageEnum
Enum controlling the number of times to run optimizers. The default is to run them once.
Protobuf enumtensorflow.RewriterConfig.NumIterationsType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT_NUM_ITERSDEFAULT_NUM_ITERS = 0;ONEONE = 1;TWOTWO = 2;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_NUM_ITERS_VALUEDEFAULT_NUM_ITERS = 0;static intONE_VALUEONE = 1;static intTWO_VALUETWO = 2;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RewriterConfig.NumIterationsTypeforNumber(int value)static org.nd4j.shade.protobuf.Descriptors.EnumDescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static org.nd4j.shade.protobuf.Internal.EnumLiteMap<RewriterConfig.NumIterationsType>internalGetValueMap()static RewriterConfig.NumIterationsTypevalueOf(int value)Deprecated.static RewriterConfig.NumIterationsTypevalueOf(String name)Returns the enum constant of this type with the specified name.static RewriterConfig.NumIterationsTypevalueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static RewriterConfig.NumIterationsType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT_NUM_ITERS
public static final RewriterConfig.NumIterationsType DEFAULT_NUM_ITERS
DEFAULT_NUM_ITERS = 0;
-
ONE
public static final RewriterConfig.NumIterationsType ONE
ONE = 1;
-
TWO
public static final RewriterConfig.NumIterationsType TWO
TWO = 2;
-
UNRECOGNIZED
public static final RewriterConfig.NumIterationsType UNRECOGNIZED
-
-
Field Detail
-
DEFAULT_NUM_ITERS_VALUE
public static final int DEFAULT_NUM_ITERS_VALUE
DEFAULT_NUM_ITERS = 0;- See Also:
- Constant Field Values
-
ONE_VALUE
public static final int ONE_VALUE
ONE = 1;- See Also:
- Constant Field Values
-
TWO_VALUE
public static final int TWO_VALUE
TWO = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static RewriterConfig.NumIterationsType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RewriterConfig.NumIterationsType c : RewriterConfig.NumIterationsType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RewriterConfig.NumIterationsType 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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfaceorg.nd4j.shade.protobuf.Internal.EnumLite- Specified by:
getNumberin interfaceorg.nd4j.shade.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static RewriterConfig.NumIterationsType 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 nameNullPointerException- if the argument is null
-
forNumber
public static RewriterConfig.NumIterationsType 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 org.nd4j.shade.protobuf.Internal.EnumLiteMap<RewriterConfig.NumIterationsType> internalGetValueMap()
-
getValueDescriptor
public final org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfaceorg.nd4j.shade.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static RewriterConfig.NumIterationsType valueOf(org.nd4j.shade.protobuf.Descriptors.EnumValueDescriptor desc)
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
-
-