public static enum RewriterConfig.Toggle extends java.lang.Enum<RewriterConfig.Toggle> implements com.google.protobuf.ProtocolMessageEnum
tensorflow.RewriterConfig.Toggle| Enum Constant and Description |
|---|
AGGRESSIVE
Enable some aggressive optimizations that use assumptions that TF graphs
may break.
|
DEFAULT
DEFAULT = 0; |
OFF
OFF = 2; |
ON
ON = 1; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AGGRESSIVE_VALUE
Enable some aggressive optimizations that use assumptions that TF graphs
may break.
|
static int |
DEFAULT_VALUE
DEFAULT = 0; |
static int |
OFF_VALUE
OFF = 2; |
static int |
ON_VALUE
ON = 1; |
| Modifier and Type | Method and Description |
|---|---|
static RewriterConfig.Toggle |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<RewriterConfig.Toggle> |
internalGetValueMap() |
static RewriterConfig.Toggle |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RewriterConfig.Toggle |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RewriterConfig.Toggle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RewriterConfig.Toggle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RewriterConfig.Toggle DEFAULT
DEFAULT = 0;public static final RewriterConfig.Toggle ON
ON = 1;public static final RewriterConfig.Toggle OFF
OFF = 2;public static final RewriterConfig.Toggle 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;public static final RewriterConfig.Toggle UNRECOGNIZED
public static final int DEFAULT_VALUE
DEFAULT = 0;public static final int ON_VALUE
ON = 1;public static final int OFF_VALUE
OFF = 2;public static final int AGGRESSIVE_VALUE
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;public static RewriterConfig.Toggle[] values()
for (RewriterConfig.Toggle c : RewriterConfig.Toggle.values()) System.out.println(c);
public static RewriterConfig.Toggle valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static RewriterConfig.Toggle valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static RewriterConfig.Toggle forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RewriterConfig.Toggle> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RewriterConfig.Toggle valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)