Package org.platanios.tensorflow.proto
Class RunOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
- org.platanios.tensorflow.proto.RunOptions.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.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 typeorg.platanios.tensorflow.proto.RunOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
.org.platanios.tensorflow.proto.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()
.org.platanios.tensorflow.proto.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()
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
RunOptions.Experimental.Builder
getExperimentalBuilder()
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
RunOptions.ExperimentalOrBuilder
getExperimentalOrBuilder()
.org.platanios.tensorflow.proto.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()
.org.platanios.tensorflow.proto.RunOptions.TraceLevel trace_level = 1;
int
getTraceLevelValue()
.org.platanios.tensorflow.proto.RunOptions.TraceLevel trace_level = 1;
boolean
hasDebugOptions()
EXPERIMENTAL.boolean
hasExperimental()
.org.platanios.tensorflow.proto.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)
.org.platanios.tensorflow.proto.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 value)
EXPERIMENTAL.RunOptions.Builder
setDebugOptions(DebugOptions.Builder builderForValue)
EXPERIMENTAL.RunOptions.Builder
setExperimental(RunOptions.Experimental value)
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
RunOptions.Builder
setExperimental(RunOptions.Experimental.Builder builderForValue)
.org.platanios.tensorflow.proto.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)
.org.platanios.tensorflow.proto.RunOptions.TraceLevel trace_level = 1;
RunOptions.Builder
setTraceLevelValue(int value)
.org.platanios.tensorflow.proto.RunOptions.TraceLevel trace_level = 1;
RunOptions.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.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 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
clear
public RunOptions.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
getDefaultInstanceForType
public RunOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RunOptions build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RunOptions buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RunOptions.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
setField
public RunOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
clearField
public RunOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
clearOneof
public RunOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
setRepeatedField
public RunOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
addRepeatedField
public RunOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
mergeFrom
public RunOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RunOptions.Builder>
-
mergeFrom
public RunOptions.Builder mergeFrom(RunOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
mergeFrom
public RunOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RunOptions.Builder>
- Throws:
java.io.IOException
-
getTraceLevelValue
public int getTraceLevelValue()
.org.platanios.tensorflow.proto.RunOptions.TraceLevel trace_level = 1;
- Specified by:
getTraceLevelValue
in interfaceRunOptionsOrBuilder
- Returns:
- The enum numeric value on the wire for traceLevel.
-
setTraceLevelValue
public RunOptions.Builder setTraceLevelValue(int value)
.org.platanios.tensorflow.proto.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()
.org.platanios.tensorflow.proto.RunOptions.TraceLevel trace_level = 1;
- Specified by:
getTraceLevel
in interfaceRunOptionsOrBuilder
- Returns:
- The traceLevel.
-
setTraceLevel
public RunOptions.Builder setTraceLevel(RunOptions.TraceLevel value)
.org.platanios.tensorflow.proto.RunOptions.TraceLevel trace_level = 1;
- Parameters:
value
- The traceLevel to set.- Returns:
- This builder for chaining.
-
clearTraceLevel
public RunOptions.Builder clearTraceLevel()
.org.platanios.tensorflow.proto.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:
getTimeoutInMs
in 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. 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:
getInterOpThreadPool
in interfaceRunOptionsOrBuilder
- Returns:
- The interOpThreadPool.
-
setInterOpThreadPool
public 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;
- 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. 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:
getOutputPartitionGraphs
in 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.
.org.platanios.tensorflow.proto.DebugOptions debug_options = 6;
- Specified by:
hasDebugOptions
in interfaceRunOptionsOrBuilder
- Returns:
- Whether the debugOptions field is set.
-
getDebugOptions
public DebugOptions getDebugOptions()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.org.platanios.tensorflow.proto.DebugOptions debug_options = 6;
- Specified by:
getDebugOptions
in interfaceRunOptionsOrBuilder
- Returns:
- The debugOptions.
-
setDebugOptions
public RunOptions.Builder setDebugOptions(DebugOptions value)
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.org.platanios.tensorflow.proto.DebugOptions debug_options = 6;
-
setDebugOptions
public RunOptions.Builder setDebugOptions(DebugOptions.Builder builderForValue)
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.org.platanios.tensorflow.proto.DebugOptions debug_options = 6;
-
mergeDebugOptions
public RunOptions.Builder mergeDebugOptions(DebugOptions value)
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.org.platanios.tensorflow.proto.DebugOptions debug_options = 6;
-
clearDebugOptions
public RunOptions.Builder clearDebugOptions()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.org.platanios.tensorflow.proto.DebugOptions debug_options = 6;
-
getDebugOptionsBuilder
public DebugOptions.Builder getDebugOptionsBuilder()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.org.platanios.tensorflow.proto.DebugOptions debug_options = 6;
-
getDebugOptionsOrBuilder
public DebugOptionsOrBuilder getDebugOptionsOrBuilder()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.org.platanios.tensorflow.proto.DebugOptions debug_options = 6;
- Specified by:
getDebugOptionsOrBuilder
in 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:
getReportTensorAllocationsUponOom
in 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()
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
- Specified by:
hasExperimental
in interfaceRunOptionsOrBuilder
- Returns:
- Whether the experimental field is set.
-
getExperimental
public RunOptions.Experimental getExperimental()
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
- Specified by:
getExperimental
in interfaceRunOptionsOrBuilder
- Returns:
- The experimental.
-
setExperimental
public RunOptions.Builder setExperimental(RunOptions.Experimental value)
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
-
setExperimental
public RunOptions.Builder setExperimental(RunOptions.Experimental.Builder builderForValue)
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
-
mergeExperimental
public RunOptions.Builder mergeExperimental(RunOptions.Experimental value)
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
-
clearExperimental
public RunOptions.Builder clearExperimental()
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
-
getExperimentalBuilder
public RunOptions.Experimental.Builder getExperimentalBuilder()
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
-
getExperimentalOrBuilder
public RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder()
.org.platanios.tensorflow.proto.RunOptions.Experimental experimental = 8;
- Specified by:
getExperimentalOrBuilder
in interfaceRunOptionsOrBuilder
-
setUnknownFields
public final RunOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
mergeUnknownFields
public final RunOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RunOptions.Builder>
-
-