Class OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
org.tensorflow.proto.OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, OptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
- Enclosing class:
OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph
public static final class OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder
extends GeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllRetTypes(Iterable<? extends DataType> values) Return node types of the function.addAllRetTypesValue(Iterable<Integer> values) Return node types of the function.addRepeatedField(Descriptors.FieldDescriptor field, Object value) addRetTypes(DataType value) Return node types of the function.addRetTypesValue(int value) Return node types of the function.build()clear()Optimized function graph.Function name.Number of return nodes.Time (in microseconds) spent on running the graph optimization passes for this function.Return node types of the function.Indicates the source environment where this proto is generated.clone()booleanMaps from node name to control ret.static final Descriptors.DescriptorOptimized function graph.Optimized function graph.Optimized function graph.Deprecated.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.Indicates the source environment where this proto is generated.intIndicates the source environment where this proto is generated.booleanOptimized function graph.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) protected MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFunctionGraph(GraphDef value) Optimized function graph.mergeUnknownFields(UnknownFieldSet unknownFields) putAllNodeNameToControlRet(Map<String, String> values) Maps from node name to control ret.putNodeNameToControlRet(String key, String value) Maps from node name to control ret.Maps from node name to control ret.setField(Descriptors.FieldDescriptor field, Object value) setFunctionGraph(GraphDef value) Optimized function graph.setFunctionGraph(GraphDef.Builder builderForValue) Optimized function graph.Function name.setNameBytes(ByteString value) Function name.setNumReturnNodes(int value) Number of return nodes.setOptimizationTimeUsecs(long value) Time (in microseconds) spent on running the graph optimization passes for this function.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setRetTypes(int index, DataType value) Return node types of the function.setRetTypesValue(int index, int value) Return node types of the function.Indicates the source environment where this proto is generated.setSourceValue(int value) Indicates the source environment where this proto is generated.setUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetMapField
-
internalGetMutableMapField
-
internalGetFieldAccessorTable
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
setField
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder setField(Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
clearField
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder clearField(Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
clearOneof
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder clearOneof(Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
setRepeatedField
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
addRepeatedField
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
mergeFrom
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>- Throws:
IOException
-
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.
-
setName
Function name. It can be a human-readable SignatureDef's method name, or a FunctionDef name.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Function name. It can be a human-readable SignatureDef's method name, or a FunctionDef name.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder setNameBytes(ByteString value) Function name. It can be a human-readable SignatureDef's method name, or a FunctionDef name.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setFunctionGraph
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder setFunctionGraph(GraphDef value) Optimized function graph.
.tensorflow.GraphDef function_graph = 2; -
setFunctionGraph
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder setFunctionGraph(GraphDef.Builder builderForValue) Optimized function graph.
.tensorflow.GraphDef function_graph = 2; -
mergeFunctionGraph
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder mergeFunctionGraph(GraphDef value) Optimized function graph.
.tensorflow.GraphDef function_graph = 2; -
clearFunctionGraph
Optimized function graph.
.tensorflow.GraphDef function_graph = 2; -
getFunctionGraphBuilder
Optimized function graph.
.tensorflow.GraphDef function_graph = 2; -
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
-
clearNodeNameToControlRet
-
removeNodeNameToControlRet
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder removeNodeNameToControlRet(String key) 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; -
getMutableNodeNameToControlRet
Deprecated.Use alternate mutation accessors instead. -
putNodeNameToControlRet
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder putNodeNameToControlRet(String key, String value) 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; -
putAllNodeNameToControlRet
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder putAllNodeNameToControlRet(Map<String, String> values) 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; -
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.
-
setRetTypes
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder setRetTypes(int index, DataType value) Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Parameters:
index- The index to set the value at.value- The retTypes to set.- Returns:
- This builder for chaining.
-
addRetTypes
Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Parameters:
value- The retTypes to add.- Returns:
- This builder for chaining.
-
addAllRetTypes
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder addAllRetTypes(Iterable<? extends DataType> values) Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Parameters:
values- The retTypes to add.- Returns:
- This builder for chaining.
-
clearRetTypes
Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Returns:
- This builder for chaining.
-
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.
-
setRetTypesValue
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder setRetTypesValue(int index, int value) Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for retTypes to set.- Returns:
- This builder for chaining.
-
addRetTypesValue
Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Parameters:
value- The enum numeric value on the wire for retTypes to add.- Returns:
- This builder for chaining.
-
addAllRetTypesValue
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder addAllRetTypesValue(Iterable<Integer> values) Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Parameters:
values- The enum numeric values on the wire for retTypes to add.- Returns:
- This builder for chaining.
-
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.
-
setNumReturnNodes
Number of return nodes. This is an output of graph preprocessing.
uint32 num_return_nodes = 5;- Parameters:
value- The numReturnNodes to set.- Returns:
- This builder for chaining.
-
clearNumReturnNodes
Number of return nodes. This is an output of graph preprocessing.
uint32 num_return_nodes = 5;- Returns:
- This builder for chaining.
-
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.
-
setSourceValue
Indicates the source environment where this proto is generated.
optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7;- Parameters:
value- The enum numeric value on the wire for source to set.- Returns:
- This builder for chaining.
-
getSource
Indicates the source environment where this proto is generated.
optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7;- Specified by:
getSourcein interfaceOptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder- Returns:
- The source.
-
setSource
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder setSource(OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.OptimizationSource value) Indicates the source environment where this proto is generated.
optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
Indicates the source environment where this proto is generated.
optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7;- Returns:
- This builder for chaining.
-
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.
-
setOptimizationTimeUsecs
public OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder setOptimizationTimeUsecs(long value) Time (in microseconds) spent on running the graph optimization passes for this function.
optional uint64 optimization_time_usecs = 8;- Parameters:
value- The optimizationTimeUsecs to set.- Returns:
- This builder for chaining.
-
clearOptimizationTimeUsecs
Time (in microseconds) spent on running the graph optimization passes for this function.
optional uint64 optimization_time_usecs = 8;- Returns:
- This builder for chaining.
-
setUnknownFields
public final OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder setUnknownFields(UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-
mergeUnknownFields
public final OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder mergeUnknownFields(UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder>
-