Enum OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource
java.lang.Object
java.lang.Enum<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource>
org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource>
- Enclosing class:
OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph
public static enum OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource
extends Enum<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource>
implements ProtocolMessageEnum
Enum for distinguishing the origin where the proto is created. AOT: proto is created in ahead-of-time environment, which can be different from the environment where the graph is actually executed. JIT: proto is created in just-in-time execution, which has the same environment as the one the graph is actually executed.Protobuf enum
tensorflow.OptimizedFunctionGraph.OptimizationSource-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAOT = 1;JIT = 2;SOURCE_UNSPECIFIED = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAOT = 1;static final intJIT = 2;static final intSOURCE_UNSPECIFIED = 0; -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final Descriptors.EnumDescriptorfinal intstatic Internal.EnumLiteMap<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource> valueOf(int value) Deprecated.Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SOURCE_UNSPECIFIED
public static final OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource SOURCE_UNSPECIFIEDSOURCE_UNSPECIFIED = 0; -
AOT
AOT = 1; -
JIT
JIT = 2; -
UNRECOGNIZED
public static final OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource UNRECOGNIZED
-
-
Field Details
-
SOURCE_UNSPECIFIED_VALUE
public static final int SOURCE_UNSPECIFIED_VALUESOURCE_UNSPECIFIED = 0;- See Also:
-
AOT_VALUE
public static final int AOT_VALUEAOT = 1;- See Also:
-
JIT_VALUE
public static final int JIT_VALUEJIT = 2;- 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
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource 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 interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
@Deprecated public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource 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 OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource 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 Internal.EnumLiteMap<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource> internalGetValueMap() -
getValueDescriptor
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource valueOf(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
-