Class OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, OptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
- Enclosing class:
OptimizedFunctionGraphOuterClass
public static final class OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph
extends GeneratedMessageV3
implements OptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
Optimized function graph after instantiation-related graph optimization passes (up till before graph partitioning). The first half of the proto is representing a GraphDef and the rest of the fields are extra information from graph optimizations.Protobuf type
tensorflow.OptimizedFunctionGraph- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOptimized function graph after instantiation-related graph optimization passes (up till before graph partitioning).static enumEnum for distinguishing the origin where the proto is created.Nested classes/interfaces inherited from class GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanMaps from node name to control ret.booleanstatic final Descriptors.DescriptorOptimized function graph.Optimized function graph.getName()Function name.Function name.Deprecated.intMaps from node name to control ret.Maps from node name to control ret.getNodeNameToControlRetOrDefault(String key, String defaultValue) Maps from node name to control ret.Maps from node name to control ret.intNumber of return nodes.longTime (in microseconds) spent on running the graph optimization passes for this function.getRetTypes(int index) Return node types of the function.intReturn node types of the function.Return node types of the function.intgetRetTypesValue(int index) Return node types of the function.Return node types of the function.intIndicates the source environment where this proto is generated.intIndicates the source environment where this proto is generated.final UnknownFieldSetbooleanOptimized function graph.inthashCode()booleanTime (in microseconds) spent on running the graph optimization passes for this function.booleanIndicates the source environment where this proto is generated.protected GeneratedMessageV3.FieldAccessorTableprotected MapFieldinternalGetMapField(int number) final booleanprotected ObjectparseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) parseFrom(ByteString data) parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) parseFrom(CodedInputStream input) parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) parser()voidwriteTo(CodedOutputStream output) Methods inherited from class GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
FUNCTION_GRAPH_FIELD_NUMBER
public static final int FUNCTION_GRAPH_FIELD_NUMBER- See Also:
-
NODE_NAME_TO_CONTROL_RET_FIELD_NUMBER
public static final int NODE_NAME_TO_CONTROL_RET_FIELD_NUMBER- See Also:
-
RET_TYPES_FIELD_NUMBER
public static final int RET_TYPES_FIELD_NUMBER- See Also:
-
NUM_RETURN_NODES_FIELD_NUMBER
public static final int NUM_RETURN_NODES_FIELD_NUMBER- See Also:
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER- See Also:
-
OPTIMIZATION_TIME_USECS_FIELD_NUMBER
public static final int OPTIMIZATION_TIME_USECS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetMapField
- Overrides:
internalGetMapFieldin classGeneratedMessageV3
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getName
Function name. It can be a human-readable SignatureDef's method name, or a FunctionDef name.
string name = 1;- Specified by:
getNamein interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- The name.
-
getNameBytes
Function name. It can be a human-readable SignatureDef's method name, or a FunctionDef name.
string name = 1;- Specified by:
getNameBytesin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- The bytes for name.
-
hasFunctionGraph
public boolean hasFunctionGraph()Optimized function graph.
.tensorflow.GraphDef function_graph = 2;- Specified by:
hasFunctionGraphin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- Whether the functionGraph field is set.
-
getFunctionGraph
Optimized function graph.
.tensorflow.GraphDef function_graph = 2;- Specified by:
getFunctionGraphin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- The functionGraph.
-
getFunctionGraphOrBuilder
Optimized function graph.
.tensorflow.GraphDef function_graph = 2;- Specified by:
getFunctionGraphOrBuilderin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
-
getNodeNameToControlRetCount
public int getNodeNameToControlRetCount()Description copied from interface:OptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilderMaps from node name to control ret. This is an output from running TF/XLA bridge.
map<string, string> node_name_to_control_ret = 3;- Specified by:
getNodeNameToControlRetCountin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
-
containsNodeNameToControlRet
Maps from node name to control ret. This is an output from running TF/XLA bridge.
map<string, string> node_name_to_control_ret = 3;- Specified by:
containsNodeNameToControlRetin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
-
getNodeNameToControlRet
Deprecated.UsegetNodeNameToControlRetMap()instead.- Specified by:
getNodeNameToControlRetin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
-
getNodeNameToControlRetMap
Maps from node name to control ret. This is an output from running TF/XLA bridge.
map<string, string> node_name_to_control_ret = 3;- Specified by:
getNodeNameToControlRetMapin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
-
getNodeNameToControlRetOrDefault
Maps from node name to control ret. This is an output from running TF/XLA bridge.
map<string, string> node_name_to_control_ret = 3;- Specified by:
getNodeNameToControlRetOrDefaultin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
-
getNodeNameToControlRetOrThrow
Maps from node name to control ret. This is an output from running TF/XLA bridge.
map<string, string> node_name_to_control_ret = 3;- Specified by:
getNodeNameToControlRetOrThrowin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
-
getRetTypesList
Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Specified by:
getRetTypesListin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- A list containing the retTypes.
-
getRetTypesCount
public int getRetTypesCount()Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Specified by:
getRetTypesCountin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- The count of retTypes.
-
getRetTypes
Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Specified by:
getRetTypesin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The retTypes at the given index.
-
getRetTypesValueList
Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Specified by:
getRetTypesValueListin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- A list containing the enum numeric values on the wire for retTypes.
-
getRetTypesValue
public int getRetTypesValue(int index) Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Specified by:
getRetTypesValuein interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of retTypes at the given index.
-
getNumReturnNodes
public int getNumReturnNodes()Number of return nodes. This is an output of graph preprocessing.
uint32 num_return_nodes = 5;- Specified by:
getNumReturnNodesin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- The numReturnNodes.
-
hasSource
public boolean hasSource()Indicates the source environment where this proto is generated.
optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7;- Specified by:
hasSourcein interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- Whether the source field is set.
-
getSourceValue
public int getSourceValue()Indicates the source environment where this proto is generated.
optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7;- Specified by:
getSourceValuein interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- The enum numeric value on the wire for source.
-
getSource
Indicates the source environment where this proto is generated.
optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7;- Specified by:
getSourcein interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- The source.
-
hasOptimizationTimeUsecs
public boolean hasOptimizationTimeUsecs()Time (in microseconds) spent on running the graph optimization passes for this function.
optional uint64 optimization_time_usecs = 8;- Specified by:
hasOptimizationTimeUsecsin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- Whether the optimizationTimeUsecs field is set.
-
getOptimizationTimeUsecs
public long getOptimizationTimeUsecs()Time (in microseconds) spent on running the graph optimization passes for this function.
optional uint64 optimization_time_usecs = 8;- Specified by:
getOptimizationTimeUsecsin interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- The optimizationTimeUsecs.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(ByteBuffer data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(ByteString data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(byte[] data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
public static OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder newBuilder(OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph prototype) -
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
protected OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-