Package org.tensorflow.framework
Class RunOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RunOptions.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
org.tensorflow.framework.RunOptions.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,RunOptionsOrBuilder
- Enclosing class:
RunOptions
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()EXPERIMENTAL..tensorflow.RunOptions.Experimental experimental = 8;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The thread pool to use, if session_inter_op_thread_pool is configured.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.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).Time to wait for operation to complete in milliseconds..tensorflow.RunOptions.TraceLevel trace_level = 1;clone()EXPERIMENTAL.EXPERIMENTAL.EXPERIMENTAL.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptor.tensorflow.RunOptions.Experimental experimental = 8;.tensorflow.RunOptions.Experimental experimental = 8;.tensorflow.RunOptions.Experimental experimental = 8;intThe thread pool to use, if session_inter_op_thread_pool is configured.booleanWhether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.booleanWhen 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).longTime to wait for operation to complete in milliseconds..tensorflow.RunOptions.TraceLevel trace_level = 1;int.tensorflow.RunOptions.TraceLevel trace_level = 1;booleanEXPERIMENTAL.boolean.tensorflow.RunOptions.Experimental experimental = 8;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeDebugOptions(DebugOptions value) EXPERIMENTAL..tensorflow.RunOptions.Experimental experimental = 8;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RunOptions other) final RunOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDebugOptions(DebugOptions value) EXPERIMENTAL.setDebugOptions(DebugOptions.Builder builderForValue) EXPERIMENTAL..tensorflow.RunOptions.Experimental experimental = 8;setExperimental(RunOptions.Experimental.Builder builderForValue) .tensorflow.RunOptions.Experimental experimental = 8;setInterOpThreadPool(int value) The thread pool to use, if session_inter_op_thread_pool is configured.setOutputPartitionGraphs(boolean value) Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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).setTimeoutInMs(long value) Time to wait for operation to complete in milliseconds..tensorflow.RunOptions.TraceLevel trace_level = 1;setTraceLevelValue(int value) .tensorflow.RunOptions.TraceLevel trace_level = 1;final RunOptions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
setField
public RunOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
setRepeatedField
public RunOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
addRepeatedField
public RunOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RunOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
mergeFrom
public RunOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RunOptions.Builder>- Throws:
IOException
-
getTraceLevelValue
public int getTraceLevelValue().tensorflow.RunOptions.TraceLevel trace_level = 1;- Specified by:
getTraceLevelValuein interfaceRunOptionsOrBuilder- Returns:
- The enum numeric value on the wire for traceLevel.
-
setTraceLevelValue
.tensorflow.RunOptions.TraceLevel trace_level = 1;- Parameters:
value- The enum numeric value on the wire for traceLevel to set.- Returns:
- This builder for chaining.
-
getTraceLevel
.tensorflow.RunOptions.TraceLevel trace_level = 1;- Specified by:
getTraceLevelin interfaceRunOptionsOrBuilder- Returns:
- The traceLevel.
-
setTraceLevel
.tensorflow.RunOptions.TraceLevel trace_level = 1;- Parameters:
value- The traceLevel to set.- Returns:
- This builder for chaining.
-
clearTraceLevel
.tensorflow.RunOptions.TraceLevel trace_level = 1;- Returns:
- This builder for chaining.
-
getTimeoutInMs
public long getTimeoutInMs()Time to wait for operation to complete in milliseconds.
int64 timeout_in_ms = 2;- Specified by:
getTimeoutInMsin interfaceRunOptionsOrBuilder- Returns:
- The timeoutInMs.
-
setTimeoutInMs
Time to wait for operation to complete in milliseconds.
int64 timeout_in_ms = 2;- Parameters:
value- The timeoutInMs to set.- Returns:
- This builder for chaining.
-
clearTimeoutInMs
Time to wait for operation to complete in milliseconds.
int64 timeout_in_ms = 2;- Returns:
- This builder for chaining.
-
getInterOpThreadPool
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;- Specified by:
getInterOpThreadPoolin interfaceRunOptionsOrBuilder- Returns:
- The interOpThreadPool.
-
setInterOpThreadPool
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;- Parameters:
value- The interOpThreadPool to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getOutputPartitionGraphs
public boolean getOutputPartitionGraphs()Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.
bool output_partition_graphs = 5;- Specified by:
getOutputPartitionGraphsin interfaceRunOptionsOrBuilder- Returns:
- The outputPartitionGraphs.
-
setOutputPartitionGraphs
Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.
bool output_partition_graphs = 5;- Parameters:
value- The outputPartitionGraphs to set.- Returns:
- This builder for chaining.
-
clearOutputPartitionGraphs
Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.
bool output_partition_graphs = 5;- Returns:
- This builder for chaining.
-
hasDebugOptions
public boolean hasDebugOptions()EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;- Specified by:
hasDebugOptionsin interfaceRunOptionsOrBuilder- Returns:
- Whether the debugOptions field is set.
-
getDebugOptions
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;- Specified by:
getDebugOptionsin interfaceRunOptionsOrBuilder- Returns:
- The debugOptions.
-
setDebugOptions
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6; -
setDebugOptions
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6; -
mergeDebugOptions
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6; -
clearDebugOptions
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6; -
getDebugOptionsBuilder
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6; -
getDebugOptionsOrBuilder
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;- Specified by:
getDebugOptionsOrBuilderin interfaceRunOptionsOrBuilder
-
getReportTensorAllocationsUponOom
public 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;- Specified by:
getReportTensorAllocationsUponOomin interfaceRunOptionsOrBuilder- Returns:
- The reportTensorAllocationsUponOom.
-
setReportTensorAllocationsUponOom
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;- Parameters:
value- The reportTensorAllocationsUponOom to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasExperimental
public boolean hasExperimental().tensorflow.RunOptions.Experimental experimental = 8;- Specified by:
hasExperimentalin interfaceRunOptionsOrBuilder- Returns:
- Whether the experimental field is set.
-
getExperimental
.tensorflow.RunOptions.Experimental experimental = 8;- Specified by:
getExperimentalin interfaceRunOptionsOrBuilder- Returns:
- The experimental.
-
setExperimental
.tensorflow.RunOptions.Experimental experimental = 8; -
setExperimental
.tensorflow.RunOptions.Experimental experimental = 8; -
mergeExperimental
.tensorflow.RunOptions.Experimental experimental = 8; -
clearExperimental
.tensorflow.RunOptions.Experimental experimental = 8; -
getExperimentalBuilder
.tensorflow.RunOptions.Experimental experimental = 8; -
getExperimentalOrBuilder
.tensorflow.RunOptions.Experimental experimental = 8;- Specified by:
getExperimentalOrBuilderin interfaceRunOptionsOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
mergeUnknownFields
public final RunOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-