Package org.tensorflow.framework
Class RunOptions.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
- org.tensorflow.framework.RunOptions.Builder
-
- All Implemented Interfaces:
Cloneable,org.nd4j.shade.protobuf.Message.Builder,org.nd4j.shade.protobuf.MessageLite.Builder,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder,RunOptionsOrBuilder
- Enclosing class:
- RunOptions
public static final class RunOptions.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder> implements RunOptionsOrBuilder
Options for a single Run() call.
Protobuf typetensorflow.RunOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RunOptions.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)RunOptionsbuild()RunOptionsbuildPartial()RunOptions.Builderclear()RunOptions.BuilderclearDebugOptions()EXPERIMENTAL.RunOptions.BuilderclearExperimental().tensorflow.RunOptions.Experimental experimental = 8;RunOptions.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)RunOptions.BuilderclearInterOpThreadPool()The thread pool to use, if session_inter_op_thread_pool is configured.RunOptions.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)RunOptions.BuilderclearOutputPartitionGraphs()Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.RunOptions.BuilderclearReportTensorAllocationsUponOom()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.BuilderclearTimeoutInMs()Time to wait for operation to complete in milliseconds.RunOptions.BuilderclearTraceLevel().tensorflow.RunOptions.TraceLevel trace_level = 1;RunOptions.Builderclone()DebugOptionsgetDebugOptions()EXPERIMENTAL.DebugOptions.BuildergetDebugOptionsBuilder()EXPERIMENTAL.DebugOptionsOrBuildergetDebugOptionsOrBuilder()EXPERIMENTAL.RunOptionsgetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()RunOptions.ExperimentalgetExperimental().tensorflow.RunOptions.Experimental experimental = 8;RunOptions.Experimental.BuildergetExperimentalBuilder().tensorflow.RunOptions.Experimental experimental = 8;RunOptions.ExperimentalOrBuildergetExperimentalOrBuilder().tensorflow.RunOptions.Experimental experimental = 8;intgetInterOpThreadPool()The thread pool to use, if session_inter_op_thread_pool is configured.booleangetOutputPartitionGraphs()Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.booleangetReportTensorAllocationsUponOom()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).longgetTimeoutInMs()Time to wait for operation to complete in milliseconds.RunOptions.TraceLevelgetTraceLevel().tensorflow.RunOptions.TraceLevel trace_level = 1;intgetTraceLevelValue().tensorflow.RunOptions.TraceLevel trace_level = 1;booleanhasDebugOptions()EXPERIMENTAL.booleanhasExperimental().tensorflow.RunOptions.Experimental experimental = 8;protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RunOptions.BuildermergeDebugOptions(DebugOptions value)EXPERIMENTAL.RunOptions.BuildermergeExperimental(RunOptions.Experimental value).tensorflow.RunOptions.Experimental experimental = 8;RunOptions.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)RunOptions.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)RunOptions.BuildermergeFrom(RunOptions other)RunOptions.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)RunOptions.BuildersetDebugOptions(DebugOptions value)EXPERIMENTAL.RunOptions.BuildersetDebugOptions(DebugOptions.Builder builderForValue)EXPERIMENTAL.RunOptions.BuildersetExperimental(RunOptions.Experimental value).tensorflow.RunOptions.Experimental experimental = 8;RunOptions.BuildersetExperimental(RunOptions.Experimental.Builder builderForValue).tensorflow.RunOptions.Experimental experimental = 8;RunOptions.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)RunOptions.BuildersetInterOpThreadPool(int value)The thread pool to use, if session_inter_op_thread_pool is configured.RunOptions.BuildersetOutputPartitionGraphs(boolean value)Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.RunOptions.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RunOptions.BuildersetReportTensorAllocationsUponOom(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.BuildersetTimeoutInMs(long value)Time to wait for operation to complete in milliseconds.RunOptions.BuildersetTraceLevel(RunOptions.TraceLevel value).tensorflow.RunOptions.TraceLevel trace_level = 1;RunOptions.BuildersetTraceLevelValue(int value).tensorflow.RunOptions.TraceLevel trace_level = 1;RunOptions.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
clear
public RunOptions.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
getDefaultInstanceForType
public RunOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public RunOptions build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public RunOptions buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public RunOptions.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
setField
public RunOptions.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
clearField
public RunOptions.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
clearOneof
public RunOptions.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
setRepeatedField
public RunOptions.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
addRepeatedField
public RunOptions.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
mergeFrom
public RunOptions.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<RunOptions.Builder>
-
mergeFrom
public RunOptions.Builder mergeFrom(RunOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
mergeFrom
public RunOptions.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.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
public RunOptions.Builder setTraceLevelValue(int value)
.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
public RunOptions.TraceLevel getTraceLevel()
.tensorflow.RunOptions.TraceLevel trace_level = 1;- Specified by:
getTraceLevelin interfaceRunOptionsOrBuilder- Returns:
- The traceLevel.
-
setTraceLevel
public RunOptions.Builder setTraceLevel(RunOptions.TraceLevel value)
.tensorflow.RunOptions.TraceLevel trace_level = 1;- Parameters:
value- The traceLevel to set.- Returns:
- This builder for chaining.
-
clearTraceLevel
public RunOptions.Builder 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
public RunOptions.Builder setTimeoutInMs(long value)
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
public RunOptions.Builder 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.
int32 inter_op_thread_pool = 3;- Specified by:
getInterOpThreadPoolin interfaceRunOptionsOrBuilder- Returns:
- The interOpThreadPool.
-
setInterOpThreadPool
public RunOptions.Builder setInterOpThreadPool(int value)
The thread pool to use, if session_inter_op_thread_pool is configured.
int32 inter_op_thread_pool = 3;- Parameters:
value- The interOpThreadPool to set.- Returns:
- This builder for chaining.
-
clearInterOpThreadPool
public RunOptions.Builder clearInterOpThreadPool()
The thread pool to use, if session_inter_op_thread_pool is configured.
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
public 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;- Parameters:
value- The outputPartitionGraphs to set.- Returns:
- This builder for chaining.
-
clearOutputPartitionGraphs
public RunOptions.Builder 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
public DebugOptions getDebugOptions()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;- Specified by:
getDebugOptionsin interfaceRunOptionsOrBuilder- Returns:
- The debugOptions.
-
setDebugOptions
public RunOptions.Builder setDebugOptions(DebugOptions value)
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;
-
setDebugOptions
public RunOptions.Builder setDebugOptions(DebugOptions.Builder builderForValue)
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;
-
mergeDebugOptions
public RunOptions.Builder mergeDebugOptions(DebugOptions value)
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;
-
clearDebugOptions
public RunOptions.Builder clearDebugOptions()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;
-
getDebugOptionsBuilder
public DebugOptions.Builder getDebugOptionsBuilder()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;
-
getDebugOptionsOrBuilder
public DebugOptionsOrBuilder 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
public 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;- Parameters:
value- The reportTensorAllocationsUponOom to set.- Returns:
- This builder for chaining.
-
clearReportTensorAllocationsUponOom
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;- 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
public RunOptions.Experimental getExperimental()
.tensorflow.RunOptions.Experimental experimental = 8;- Specified by:
getExperimentalin interfaceRunOptionsOrBuilder- Returns:
- The experimental.
-
setExperimental
public RunOptions.Builder setExperimental(RunOptions.Experimental value)
.tensorflow.RunOptions.Experimental experimental = 8;
-
setExperimental
public RunOptions.Builder setExperimental(RunOptions.Experimental.Builder builderForValue)
.tensorflow.RunOptions.Experimental experimental = 8;
-
mergeExperimental
public RunOptions.Builder mergeExperimental(RunOptions.Experimental value)
.tensorflow.RunOptions.Experimental experimental = 8;
-
clearExperimental
public RunOptions.Builder clearExperimental()
.tensorflow.RunOptions.Experimental experimental = 8;
-
getExperimentalBuilder
public RunOptions.Experimental.Builder getExperimentalBuilder()
.tensorflow.RunOptions.Experimental experimental = 8;
-
getExperimentalOrBuilder
public RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder()
.tensorflow.RunOptions.Experimental experimental = 8;- Specified by:
getExperimentalOrBuilderin interfaceRunOptionsOrBuilder
-
setUnknownFields
public final RunOptions.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
mergeUnknownFields
public final RunOptions.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
-