public static final class GraphOptions.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder> implements GraphOptionsOrBuilder
tensorflow.GraphOptions
Modifier and Type | Method and Description |
---|---|
GraphOptions.Builder |
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GraphOptions |
build() |
GraphOptions |
buildPartial() |
GraphOptions.Builder |
clear() |
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(org.nd4j.shade.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(org.nd4j.shade.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 |
clone() |
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 |
getDefaultInstanceForType() |
static org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptor() |
org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GraphOptions.Builder |
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
GraphOptions.Builder |
mergeFrom(GraphOptions other) |
GraphOptions.Builder |
mergeFrom(org.nd4j.shade.protobuf.Message other) |
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.
|
GraphOptions.Builder |
mergeUnknownFields(org.nd4j.shade.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(org.nd4j.shade.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.Builder builderForValue)
Options controlling how graph is optimized.
|
GraphOptions.Builder |
setOptimizerOptions(OptimizerOptions value)
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(org.nd4j.shade.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.
|
GraphOptions.Builder |
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public GraphOptions.Builder clear()
clear
in interface org.nd4j.shade.protobuf.Message.Builder
clear
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clear
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface org.nd4j.shade.protobuf.Message.Builder
getDescriptorForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
getDescriptorForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public GraphOptions getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
public GraphOptions build()
build
in interface org.nd4j.shade.protobuf.Message.Builder
build
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public GraphOptions buildPartial()
buildPartial
in interface org.nd4j.shade.protobuf.Message.Builder
buildPartial
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public GraphOptions.Builder clone()
clone
in interface org.nd4j.shade.protobuf.Message.Builder
clone
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clone
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public GraphOptions.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface org.nd4j.shade.protobuf.Message.Builder
setField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public GraphOptions.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface org.nd4j.shade.protobuf.Message.Builder
clearField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public GraphOptions.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface org.nd4j.shade.protobuf.Message.Builder
clearOneof
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public GraphOptions.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
setRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public GraphOptions.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
addRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public GraphOptions.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<GraphOptions.Builder>
public GraphOptions.Builder mergeFrom(GraphOptions other)
public final boolean isInitialized()
isInitialized
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
isInitialized
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public GraphOptions.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in interface org.nd4j.shade.protobuf.MessageLite.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<GraphOptions.Builder>
IOException
public boolean getEnableRecvScheduling()
If true, use control flow to schedule the activation of Recv nodes. (Currently ignored.)
bool enable_recv_scheduling = 2;
getEnableRecvScheduling
in interface GraphOptionsOrBuilder
public GraphOptions.Builder setEnableRecvScheduling(boolean value)
If true, use control flow to schedule the activation of Recv nodes. (Currently ignored.)
bool enable_recv_scheduling = 2;
public GraphOptions.Builder clearEnableRecvScheduling()
If true, use control flow to schedule the activation of Recv nodes. (Currently ignored.)
bool enable_recv_scheduling = 2;
public boolean hasOptimizerOptions()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
hasOptimizerOptions
in interface GraphOptionsOrBuilder
public OptimizerOptions getOptimizerOptions()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
getOptimizerOptions
in interface GraphOptionsOrBuilder
public GraphOptions.Builder setOptimizerOptions(OptimizerOptions value)
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
public GraphOptions.Builder setOptimizerOptions(OptimizerOptions.Builder builderForValue)
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
public GraphOptions.Builder mergeOptimizerOptions(OptimizerOptions value)
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
public GraphOptions.Builder clearOptimizerOptions()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
public OptimizerOptions.Builder getOptimizerOptionsBuilder()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
public OptimizerOptionsOrBuilder getOptimizerOptionsOrBuilder()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
getOptimizerOptionsOrBuilder
in interface GraphOptionsOrBuilder
public 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;
getBuildCostModel
in interface GraphOptionsOrBuilder
public 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. 0 means no cost model.
int64 build_cost_model = 4;
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 long getBuildCostModelAfter()
The number of steps to skip before collecting statistics for the cost model.
int64 build_cost_model_after = 9;
getBuildCostModelAfter
in interface GraphOptionsOrBuilder
public GraphOptions.Builder setBuildCostModelAfter(long value)
The number of steps to skip before collecting statistics for the cost model.
int64 build_cost_model_after = 9;
public GraphOptions.Builder clearBuildCostModelAfter()
The number of steps to skip before collecting statistics for the cost model.
int64 build_cost_model_after = 9;
public boolean getInferShapes()
Annotate each Node with Op output shape data, to the extent it can be statically inferred.
bool infer_shapes = 5;
getInferShapes
in interface GraphOptionsOrBuilder
public GraphOptions.Builder setInferShapes(boolean value)
Annotate each Node with Op output shape data, to the extent it can be statically inferred.
bool infer_shapes = 5;
public GraphOptions.Builder clearInferShapes()
Annotate each Node with Op output shape data, to the extent it can be statically inferred.
bool infer_shapes = 5;
public 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;
getPlacePrunedGraph
in interface GraphOptionsOrBuilder
public GraphOptions.Builder setPlacePrunedGraph(boolean value)
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;
public GraphOptions.Builder clearPlacePrunedGraph()
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;
public boolean getEnableBfloat16Sendrecv()
If true, transfer float values between processes as bfloat16.
bool enable_bfloat16_sendrecv = 7;
getEnableBfloat16Sendrecv
in interface GraphOptionsOrBuilder
public GraphOptions.Builder setEnableBfloat16Sendrecv(boolean value)
If true, transfer float values between processes as bfloat16.
bool enable_bfloat16_sendrecv = 7;
public GraphOptions.Builder clearEnableBfloat16Sendrecv()
If true, transfer float values between processes as bfloat16.
bool enable_bfloat16_sendrecv = 7;
public int getTimelineStep()
If > 0, record a timeline every this many steps. EXPERIMENTAL: This currently has no effect in MasterSession.
int32 timeline_step = 8;
getTimelineStep
in interface GraphOptionsOrBuilder
public GraphOptions.Builder setTimelineStep(int value)
If > 0, record a timeline every this many steps. EXPERIMENTAL: This currently has no effect in MasterSession.
int32 timeline_step = 8;
public GraphOptions.Builder clearTimelineStep()
If > 0, record a timeline every this many steps. EXPERIMENTAL: This currently has no effect in MasterSession.
int32 timeline_step = 8;
public 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;
hasRewriteOptions
in interface GraphOptionsOrBuilder
public 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;
getRewriteOptions
in interface GraphOptionsOrBuilder
public GraphOptions.Builder setRewriteOptions(RewriterConfig value)
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;
public GraphOptions.Builder setRewriteOptions(RewriterConfig.Builder builderForValue)
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;
public GraphOptions.Builder mergeRewriteOptions(RewriterConfig value)
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;
public GraphOptions.Builder clearRewriteOptions()
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;
public RewriterConfig.Builder getRewriteOptionsBuilder()
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;
public 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;
getRewriteOptionsOrBuilder
in interface GraphOptionsOrBuilder
public final GraphOptions.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
setUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
public final GraphOptions.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
mergeUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GraphOptions.Builder>
Copyright © 2020. All rights reserved.