GraphOptions.Builder

public static final class GraphOptions.Builder

Protobuf type tensorflow.GraphOptions

Public Methods

GraphOptions.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GraphOptions
GraphOptions
GraphOptions.Builder
GraphOptions.Builder
clearBuildCostModel ()
 The number of steps to run before returning a cost model detailing
 the memory usage and performance of each node of the graph.
GraphOptions.Builder
clearBuildCostModelAfter ()
 The number of steps to skip before collecting statistics for the
 cost model.
GraphOptions.Builder
clearEnableBfloat16Sendrecv ()
 If true, transfer float values between processes as bfloat16.
GraphOptions.Builder
clearEnableRecvScheduling ()
 If true, use control flow to schedule the activation of Recv nodes.
GraphOptions.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
GraphOptions.Builder
clearInferShapes ()
 Annotate each Node with Op output shape data, to the extent it can
 be statically inferred.
GraphOptions.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
GraphOptions.Builder
clearOptimizerOptions ()
 Options controlling how graph is optimized.
GraphOptions.Builder
clearPlacePrunedGraph ()
 Only place the subgraphs that are run, rather than the entire graph.
GraphOptions.Builder
clearRewriteOptions ()
 Options that control the type and amount of graph rewriting.
GraphOptions.Builder
clearTimelineStep ()
 If > 0, record a timeline every this many steps.
GraphOptions.Builder
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.
long
getBuildCostModelAfter ()
 The number of steps to skip before collecting statistics for the
 cost model.
GraphOptions
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
getEnableBfloat16Sendrecv ()
 If true, transfer float values between processes as bfloat16.
boolean
getEnableRecvScheduling ()
 If true, use control flow to schedule the activation of Recv nodes.
boolean
getInferShapes ()
 Annotate each Node with Op output shape data, to the extent it can
 be statically inferred.
OptimizerOptions
getOptimizerOptions ()
 Options controlling how graph is optimized.
OptimizerOptions.Builder
getOptimizerOptionsBuilder ()
 Options controlling how graph is optimized.
OptimizerOptionsOrBuilder
getOptimizerOptionsOrBuilder ()
 Options controlling how graph is optimized.
boolean
getPlacePrunedGraph ()
 Only place the subgraphs that are run, rather than the entire graph.
RewriterConfig
getRewriteOptions ()
 Options that control the type and amount of graph rewriting.
RewriterConfig.Builder
getRewriteOptionsBuilder ()
 Options that control the type and amount of graph rewriting.
RewriterConfigOrBuilder
getRewriteOptionsOrBuilder ()
 Options that control the type and amount of graph rewriting.
int
getTimelineStep ()
 If > 0, record a timeline every this many steps.
boolean
hasOptimizerOptions ()
 Options controlling how graph is optimized.
boolean
hasRewriteOptions ()
 Options that control the type and amount of graph rewriting.
final boolean
GraphOptions.Builder
mergeFrom (com.google.protobuf.Message other)
GraphOptions.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GraphOptions.Builder
mergeOptimizerOptions ( OptimizerOptions value)
 Options controlling how graph is optimized.
GraphOptions.Builder
mergeRewriteOptions ( RewriterConfig value)
 Options that control the type and amount of graph rewriting.
final GraphOptions.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
GraphOptions.Builder
setBuildCostModel (long value)
 The number of steps to run before returning a cost model detailing
 the memory usage and performance of each node of the graph.
GraphOptions.Builder
setBuildCostModelAfter (long value)
 The number of steps to skip before collecting statistics for the
 cost model.
GraphOptions.Builder
setEnableBfloat16Sendrecv (boolean value)
 If true, transfer float values between processes as bfloat16.
GraphOptions.Builder
setEnableRecvScheduling (boolean value)
 If true, use control flow to schedule the activation of Recv nodes.
GraphOptions.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GraphOptions.Builder
setInferShapes (boolean value)
 Annotate each Node with Op output shape data, to the extent it can
 be statically inferred.
GraphOptions.Builder
setOptimizerOptions ( OptimizerOptions value)
 Options controlling how graph is optimized.
GraphOptions.Builder
setOptimizerOptions ( OptimizerOptions.Builder builderForValue)
 Options controlling how graph is optimized.
GraphOptions.Builder
setPlacePrunedGraph (boolean value)
 Only place the subgraphs that are run, rather than the entire graph.
GraphOptions.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GraphOptions.Builder
setRewriteOptions ( RewriterConfig.Builder builderForValue)
 Options that control the type and amount of graph rewriting.
GraphOptions.Builder
setRewriteOptions ( RewriterConfig value)
 Options that control the type and amount of graph rewriting.
GraphOptions.Builder
setTimelineStep (int value)
 If > 0, record a timeline every this many steps.
final GraphOptions.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public GraphOptions.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public GraphOptions build ()

public GraphOptions buildPartial ()

public GraphOptions.Builder clear ()

public GraphOptions.Builder clearBuildCostModel ()

 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;

public GraphOptions.Builder clearBuildCostModelAfter ()

 The number of steps to skip before collecting statistics for the
 cost model.
 
int64 build_cost_model_after = 9;

public GraphOptions.Builder clearEnableBfloat16Sendrecv ()

 If true, transfer float values between processes as bfloat16.
 
bool enable_bfloat16_sendrecv = 7;

public GraphOptions.Builder clearEnableRecvScheduling ()

 If true, use control flow to schedule the activation of Recv nodes.
 (Currently ignored.)
 
bool enable_recv_scheduling = 2;

public GraphOptions.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public GraphOptions.Builder clearInferShapes ()

 Annotate each Node with Op output shape data, to the extent it can
 be statically inferred.
 
bool infer_shapes = 5;