Package org.tensorflow.framework
Interface GraphOptionsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GraphOptions,GraphOptions.Builder
public interface GraphOptionsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongThe number of steps to run before returning a cost model detailing the memory usage and performance of each node of the graph. 0 means no cost model.longThe number of steps to skip before collecting statistics for the cost model.booleanIf true, transfer float values between processes as bfloat16.booleanIf true, use control flow to schedule the activation of Recv nodes.booleanAnnotate each Node with Op output shape data, to the extent it can be statically inferred.Options controlling how graph is optimized.Options controlling how graph is optimized.booleanOnly place the subgraphs that are run, rather than the entire graph.Options that control the type and amount of graph rewriting.Options that control the type and amount of graph rewriting.intIf > 0, record a timeline every this many steps.booleanOptions controlling how graph is optimized.booleanOptions that control the type and amount of graph rewriting.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getEnableRecvScheduling
boolean getEnableRecvScheduling()If true, use control flow to schedule the activation of Recv nodes. (Currently ignored.)
bool enable_recv_scheduling = 2;- Returns:
- The enableRecvScheduling.
-
hasOptimizerOptions
boolean hasOptimizerOptions()Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;- Returns:
- Whether the optimizerOptions field is set.
-
getOptimizerOptions
OptimizerOptions getOptimizerOptions()Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;- Returns:
- The optimizerOptions.
-
getOptimizerOptionsOrBuilder
OptimizerOptionsOrBuilder getOptimizerOptionsOrBuilder()Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3; -
getBuildCostModel
long getBuildCostModel()The number of steps to run before returning a cost model detailing the memory usage and performance of each node of the graph. 0 means no cost model.
int64 build_cost_model = 4;- Returns:
- The buildCostModel.
-
getBuildCostModelAfter
long getBuildCostModelAfter()The number of steps to skip before collecting statistics for the cost model.
int64 build_cost_model_after = 9;- Returns:
- The buildCostModelAfter.
-
getInferShapes
boolean getInferShapes()Annotate each Node with Op output shape data, to the extent it can be statically inferred.
bool infer_shapes = 5;- Returns:
- The inferShapes.
-
getPlacePrunedGraph
boolean getPlacePrunedGraph()Only place the subgraphs that are run, rather than the entire graph. This is useful for interactive graph building, where one might produce graphs that cannot be placed during the debugging process. In particular, it allows the client to continue work in a session after adding a node to a graph whose placement constraints are unsatisfiable.
bool place_pruned_graph = 6;- Returns:
- The placePrunedGraph.
-
getEnableBfloat16Sendrecv
boolean getEnableBfloat16Sendrecv()If true, transfer float values between processes as bfloat16.
bool enable_bfloat16_sendrecv = 7;- Returns:
- The enableBfloat16Sendrecv.
-
getTimelineStep
int getTimelineStep()If > 0, record a timeline every this many steps. EXPERIMENTAL: This currently has no effect in MasterSession.
int32 timeline_step = 8;- Returns:
- The timelineStep.
-
hasRewriteOptions
boolean hasRewriteOptions()Options that control the type and amount of graph rewriting. Not currently configurable via the public Python API (i.e. there is no API stability guarantee if you import RewriterConfig explicitly).
.tensorflow.RewriterConfig rewrite_options = 10;- Returns:
- Whether the rewriteOptions field is set.
-
getRewriteOptions
RewriterConfig getRewriteOptions()Options that control the type and amount of graph rewriting. Not currently configurable via the public Python API (i.e. there is no API stability guarantee if you import RewriterConfig explicitly).
.tensorflow.RewriterConfig rewrite_options = 10;- Returns:
- The rewriteOptions.
-
getRewriteOptionsOrBuilder
RewriterConfigOrBuilder getRewriteOptionsOrBuilder()Options that control the type and amount of graph rewriting. Not currently configurable via the public Python API (i.e. there is no API stability guarantee if you import RewriterConfig explicitly).
.tensorflow.RewriterConfig rewrite_options = 10;
-