Interface OptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph, OptimizedFunctionGraphOuterClass.OptimizedFunctionGraph.Builder
- Enclosing class:
OptimizedFunctionGraphOuterClass
public static interface OptimizedFunctionGraphOuterClass.OptimizedFunctionGraphOrBuilder
extends MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanMaps from node name to control ret.Optimized 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.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.Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
getName
String getName()Function name. It can be a human-readable SignatureDef's method name, or a FunctionDef name.
string name = 1;- Returns:
- The name.
-
getNameBytes
ByteString getNameBytes()Function name. It can be a human-readable SignatureDef's method name, or a FunctionDef name.
string name = 1;- Returns:
- The bytes for name.
-
hasFunctionGraph
boolean hasFunctionGraph()Optimized function graph.
.tensorflow.GraphDef function_graph = 2;- Returns:
- Whether the functionGraph field is set.
-
getFunctionGraph
GraphDef getFunctionGraph()Optimized function graph.
.tensorflow.GraphDef function_graph = 2;- Returns:
- The functionGraph.
-
getFunctionGraphOrBuilder
GraphDefOrBuilder getFunctionGraphOrBuilder()Optimized function graph.
.tensorflow.GraphDef function_graph = 2; -
getNodeNameToControlRetCount
int getNodeNameToControlRetCount()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; -
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; -
getNodeNameToControlRet
Deprecated.UsegetNodeNameToControlRetMap()instead. -
getNodeNameToControlRetMap
-
getNodeNameToControlRetOrDefault
-
getNodeNameToControlRetOrThrow
-
getRetTypesList
-
getRetTypesCount
int getRetTypesCount()Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- 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;- Parameters:
index- The index of the element to return.- Returns:
- The retTypes at the given index.
-
getRetTypesValueList
-
getRetTypesValue
int getRetTypesValue(int index) Return node types of the function. This is an output of graph preprocessing.
repeated .tensorflow.DataType ret_types = 4;- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of retTypes at the given index.
-
getNumReturnNodes
int getNumReturnNodes()Number of return nodes. This is an output of graph preprocessing.
uint32 num_return_nodes = 5;- Returns:
- The numReturnNodes.
-
hasSource
boolean hasSource()Indicates the source environment where this proto is generated.
optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7;- Returns:
- Whether the source field is set.
-
getSourceValue
int getSourceValue()Indicates the source environment where this proto is generated.
optional .tensorflow.OptimizedFunctionGraph.OptimizationSource source = 7;- 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;- Returns:
- The source.
-
hasOptimizationTimeUsecs
boolean hasOptimizationTimeUsecs()Time (in microseconds) spent on running the graph optimization passes for this function.
optional uint64 optimization_time_usecs = 8;- Returns:
- Whether the optimizationTimeUsecs field is set.
-
getOptimizationTimeUsecs
long getOptimizationTimeUsecs()Time (in microseconds) spent on running the graph optimization passes for this function.
optional uint64 optimization_time_usecs = 8;- Returns:
- The optimizationTimeUsecs.
-