public static final class RunOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder> implements RunOptionsOrBuilder
Options for a single Run() call.Protobuf type
tensorflow.RunOptions| Modifier and Type | Method and Description |
|---|---|
RunOptions.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
RunOptions |
build() |
RunOptions |
buildPartial() |
RunOptions.Builder |
clear() |
RunOptions.Builder |
clearDebugOptions()
EXPERIMENTAL.
|
RunOptions.Builder |
clearExperimental()
.tensorflow.RunOptions.Experimental experimental = 8; |
RunOptions.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RunOptions.Builder |
clearInterOpThreadPool()
The thread pool to use, if session_inter_op_thread_pool is configured.
|
RunOptions.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RunOptions.Builder |
clearOutputPartitionGraphs()
Whether the partition graph(s) executed by the executor(s) should be
outputted via RunMetadata.
|
RunOptions.Builder |
clearReportTensorAllocationsUponOom()
When enabled, causes tensor allocation information to be included in
the error message when the Run() call fails because the allocator ran
out of memory (OOM).
|
RunOptions.Builder |
clearTimeoutInMs()
Time to wait for operation to complete in milliseconds.
|
RunOptions.Builder |
clearTraceLevel()
.tensorflow.RunOptions.TraceLevel trace_level = 1; |
RunOptions.Builder |
clone() |
DebugOptions |
getDebugOptions()
EXPERIMENTAL.
|
DebugOptions.Builder |
getDebugOptionsBuilder()
EXPERIMENTAL.
|
DebugOptionsOrBuilder |
getDebugOptionsOrBuilder()
EXPERIMENTAL.
|
RunOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
RunOptions.Experimental |
getExperimental()
.tensorflow.RunOptions.Experimental experimental = 8; |
RunOptions.Experimental.Builder |
getExperimentalBuilder()
.tensorflow.RunOptions.Experimental experimental = 8; |
RunOptions.ExperimentalOrBuilder |
getExperimentalOrBuilder()
.tensorflow.RunOptions.Experimental experimental = 8; |
int |
getInterOpThreadPool()
The thread pool to use, if session_inter_op_thread_pool is configured.
|
boolean |
getOutputPartitionGraphs()
Whether the partition graph(s) executed by the executor(s) should be
outputted via RunMetadata.
|
boolean |
getReportTensorAllocationsUponOom()
When enabled, causes tensor allocation information to be included in
the error message when the Run() call fails because the allocator ran
out of memory (OOM).
|
long |
getTimeoutInMs()
Time to wait for operation to complete in milliseconds.
|
RunOptions.TraceLevel |
getTraceLevel()
.tensorflow.RunOptions.TraceLevel trace_level = 1; |
int |
getTraceLevelValue()
.tensorflow.RunOptions.TraceLevel trace_level = 1; |
boolean |
hasDebugOptions()
EXPERIMENTAL.
|
boolean |
hasExperimental()
.tensorflow.RunOptions.Experimental experimental = 8; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RunOptions.Builder |
mergeDebugOptions(DebugOptions value)
EXPERIMENTAL.
|
RunOptions.Builder |
mergeExperimental(RunOptions.Experimental value)
.tensorflow.RunOptions.Experimental experimental = 8; |
RunOptions.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RunOptions.Builder |
mergeFrom(com.google.protobuf.Message other) |
RunOptions.Builder |
mergeFrom(RunOptions other) |
RunOptions.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RunOptions.Builder |
setDebugOptions(DebugOptions.Builder builderForValue)
EXPERIMENTAL.
|
RunOptions.Builder |
setDebugOptions(DebugOptions value)
EXPERIMENTAL.
|
RunOptions.Builder |
setExperimental(RunOptions.Experimental.Builder builderForValue)
.tensorflow.RunOptions.Experimental experimental = 8; |
RunOptions.Builder |
setExperimental(RunOptions.Experimental value)
.tensorflow.RunOptions.Experimental experimental = 8; |
RunOptions.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
RunOptions.Builder |
setInterOpThreadPool(int value)
The thread pool to use, if session_inter_op_thread_pool is configured.
|
RunOptions.Builder |
setOutputPartitionGraphs(boolean value)
Whether the partition graph(s) executed by the executor(s) should be
outputted via RunMetadata.
|
RunOptions.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
RunOptions.Builder |
setReportTensorAllocationsUponOom(boolean value)
When enabled, causes tensor allocation information to be included in
the error message when the Run() call fails because the allocator ran
out of memory (OOM).
|
RunOptions.Builder |
setTimeoutInMs(long value)
Time to wait for operation to complete in milliseconds.
|
RunOptions.Builder |
setTraceLevel(RunOptions.TraceLevel value)
.tensorflow.RunOptions.TraceLevel trace_level = 1; |
RunOptions.Builder |
setTraceLevelValue(int value)
.tensorflow.RunOptions.TraceLevel trace_level = 1; |
RunOptions.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public RunOptions.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public RunOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RunOptions build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RunOptions buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RunOptions.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public RunOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public RunOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public RunOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public RunOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public RunOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public RunOptions.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RunOptions.Builder>public RunOptions.Builder mergeFrom(RunOptions other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public RunOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RunOptions.Builder>java.io.IOExceptionpublic int getTraceLevelValue()
.tensorflow.RunOptions.TraceLevel trace_level = 1;getTraceLevelValue in interface RunOptionsOrBuilderpublic RunOptions.Builder setTraceLevelValue(int value)
.tensorflow.RunOptions.TraceLevel trace_level = 1;value - The enum numeric value on the wire for traceLevel to set.public RunOptions.TraceLevel getTraceLevel()
.tensorflow.RunOptions.TraceLevel trace_level = 1;getTraceLevel in interface RunOptionsOrBuilderpublic RunOptions.Builder setTraceLevel(RunOptions.TraceLevel value)
.tensorflow.RunOptions.TraceLevel trace_level = 1;value - The traceLevel to set.public RunOptions.Builder clearTraceLevel()
.tensorflow.RunOptions.TraceLevel trace_level = 1;public long getTimeoutInMs()
Time to wait for operation to complete in milliseconds.
int64 timeout_in_ms = 2;getTimeoutInMs in interface RunOptionsOrBuilderpublic RunOptions.Builder setTimeoutInMs(long value)
Time to wait for operation to complete in milliseconds.
int64 timeout_in_ms = 2;value - The timeoutInMs to set.public RunOptions.Builder clearTimeoutInMs()
Time to wait for operation to complete in milliseconds.
int64 timeout_in_ms = 2;public int getInterOpThreadPool()
The thread pool to use, if session_inter_op_thread_pool is configured. To use the caller thread set this to -1 - this uses the caller thread to execute Session::Run() and thus avoids a context switch. Using the caller thread to execute Session::Run() should be done ONLY for simple graphs, where the overhead of an additional context switch is comparable with the overhead of Session::Run().
int32 inter_op_thread_pool = 3;getInterOpThreadPool in interface RunOptionsOrBuilderpublic RunOptions.Builder setInterOpThreadPool(int value)
The thread pool to use, if session_inter_op_thread_pool is configured. To use the caller thread set this to -1 - this uses the caller thread to execute Session::Run() and thus avoids a context switch. Using the caller thread to execute Session::Run() should be done ONLY for simple graphs, where the overhead of an additional context switch is comparable with the overhead of Session::Run().
int32 inter_op_thread_pool = 3;value - The interOpThreadPool to set.public RunOptions.Builder clearInterOpThreadPool()
The thread pool to use, if session_inter_op_thread_pool is configured. To use the caller thread set this to -1 - this uses the caller thread to execute Session::Run() and thus avoids a context switch. Using the caller thread to execute Session::Run() should be done ONLY for simple graphs, where the overhead of an additional context switch is comparable with the overhead of Session::Run().
int32 inter_op_thread_pool = 3;public boolean getOutputPartitionGraphs()
Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.
bool output_partition_graphs = 5;getOutputPartitionGraphs in interface RunOptionsOrBuilderpublic RunOptions.Builder setOutputPartitionGraphs(boolean value)
Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.
bool output_partition_graphs = 5;value - The outputPartitionGraphs to set.public RunOptions.Builder clearOutputPartitionGraphs()
Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.
bool output_partition_graphs = 5;public boolean hasDebugOptions()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;hasDebugOptions in interface RunOptionsOrBuilderpublic DebugOptions getDebugOptions()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;getDebugOptions in interface RunOptionsOrBuilderpublic RunOptions.Builder setDebugOptions(DebugOptions value)
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;public RunOptions.Builder setDebugOptions(DebugOptions.Builder builderForValue)
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;public RunOptions.Builder mergeDebugOptions(DebugOptions value)
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;public RunOptions.Builder clearDebugOptions()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;public DebugOptions.Builder getDebugOptionsBuilder()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;public DebugOptionsOrBuilder getDebugOptionsOrBuilder()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;getDebugOptionsOrBuilder in interface RunOptionsOrBuilderpublic boolean getReportTensorAllocationsUponOom()
When enabled, causes tensor allocation information to be included in the error message when the Run() call fails because the allocator ran out of memory (OOM). Enabling this option can slow down the Run() call.
bool report_tensor_allocations_upon_oom = 7;getReportTensorAllocationsUponOom in interface RunOptionsOrBuilderpublic RunOptions.Builder setReportTensorAllocationsUponOom(boolean value)
When enabled, causes tensor allocation information to be included in the error message when the Run() call fails because the allocator ran out of memory (OOM). Enabling this option can slow down the Run() call.
bool report_tensor_allocations_upon_oom = 7;value - The reportTensorAllocationsUponOom to set.public RunOptions.Builder clearReportTensorAllocationsUponOom()
When enabled, causes tensor allocation information to be included in the error message when the Run() call fails because the allocator ran out of memory (OOM). Enabling this option can slow down the Run() call.
bool report_tensor_allocations_upon_oom = 7;public boolean hasExperimental()
.tensorflow.RunOptions.Experimental experimental = 8;hasExperimental in interface RunOptionsOrBuilderpublic RunOptions.Experimental getExperimental()
.tensorflow.RunOptions.Experimental experimental = 8;getExperimental in interface RunOptionsOrBuilderpublic RunOptions.Builder setExperimental(RunOptions.Experimental value)
.tensorflow.RunOptions.Experimental experimental = 8;public RunOptions.Builder setExperimental(RunOptions.Experimental.Builder builderForValue)
.tensorflow.RunOptions.Experimental experimental = 8;public RunOptions.Builder mergeExperimental(RunOptions.Experimental value)
.tensorflow.RunOptions.Experimental experimental = 8;public RunOptions.Builder clearExperimental()
.tensorflow.RunOptions.Experimental experimental = 8;public RunOptions.Experimental.Builder getExperimentalBuilder()
.tensorflow.RunOptions.Experimental experimental = 8;public RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder()
.tensorflow.RunOptions.Experimental experimental = 8;getExperimentalOrBuilder in interface RunOptionsOrBuilderpublic final RunOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>public final RunOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>