Package org.tensorflow.framework
Enum Class RewriterConfig.Toggle
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<RewriterConfig.Toggle>,Constable
- Enclosing class:
RewriterConfig
public static enum RewriterConfig.Toggle
extends Enum<RewriterConfig.Toggle>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
tensorflow.RewriterConfig.Toggle-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEnable some aggressive optimizations that use assumptions that TF graphs may break.DEFAULT = 0;Run both MLIR and Grappler passes consecutively and MLIR pass will come first.Run MLIR pass if there's one implemented in TFG, do nothing otherwise.OFF = 2;ON = 1; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intEnable some aggressive optimizations that use assumptions that TF graphs may break.static final intDEFAULT = 0;static final intRun both MLIR and Grappler passes consecutively and MLIR pass will come first.static final intRun MLIR pass if there's one implemented in TFG, do nothing otherwise.static final intOFF = 2;static final intON = 1; -
Method Summary
Modifier and TypeMethodDescriptionstatic RewriterConfig.ToggleforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<RewriterConfig.Toggle> static RewriterConfig.TogglevalueOf(int value) Deprecated.static RewriterConfig.TogglevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static RewriterConfig.ToggleReturns the enum constant of this class with the specified name.static RewriterConfig.Toggle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
DEFAULT = 0; -
ON
ON = 1; -
OFF
OFF = 2; -
AGGRESSIVE
Enable some aggressive optimizations that use assumptions that TF graphs may break. For example, assume the shape of a placeholder matches its actual feed.
AGGRESSIVE = 3; -
EXPERIMENTAL_MLIR
Run MLIR pass if there's one implemented in TFG, do nothing otherwise. I.e., if there's no corresponding TFG pass, it's an OFF. This is supposed to be mapped with `ON` and there's no `AGGRESSIVE` in MLIR pass now.
EXPERIMENTAL_MLIR = 4; -
EXPERIMENTAL_BOTH
Run both MLIR and Grappler passes consecutively and MLIR pass will come first.
EXPERIMENTAL_BOTH = 5; -
UNRECOGNIZED
-
-
Field Details
-
DEFAULT_VALUE
public static final int DEFAULT_VALUEDEFAULT = 0;- See Also:
-
ON_VALUE
public static final int ON_VALUEON = 1;- See Also:
-
OFF_VALUE
public static final int OFF_VALUEOFF = 2;- See Also:
-
AGGRESSIVE_VALUE
public static final int AGGRESSIVE_VALUEEnable some aggressive optimizations that use assumptions that TF graphs may break. For example, assume the shape of a placeholder matches its actual feed.
AGGRESSIVE = 3;- See Also:
-
EXPERIMENTAL_MLIR_VALUE
public static final int EXPERIMENTAL_MLIR_VALUERun MLIR pass if there's one implemented in TFG, do nothing otherwise. I.e., if there's no corresponding TFG pass, it's an OFF. This is supposed to be mapped with `ON` and there's no `AGGRESSIVE` in MLIR pass now.
EXPERIMENTAL_MLIR = 4;- See Also:
-
EXPERIMENTAL_BOTH_VALUE
public static final int EXPERIMENTAL_BOTH_VALUERun both MLIR and Grappler passes consecutively and MLIR pass will come first.
EXPERIMENTAL_BOTH = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static RewriterConfig.Toggle valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-