Package org.tensorflow.framework
Interface RunOptionsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RunOptions,RunOptions.Builder
public interface RunOptionsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionEXPERIMENTAL.EXPERIMENTAL..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;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTraceLevelValue
int getTraceLevelValue().tensorflow.RunOptions.TraceLevel trace_level = 1;- Returns:
- The enum numeric value on the wire for traceLevel.
-
getTraceLevel
RunOptions.TraceLevel getTraceLevel().tensorflow.RunOptions.TraceLevel trace_level = 1;- Returns:
- The traceLevel.
-
getTimeoutInMs
long getTimeoutInMs()Time to wait for operation to complete in milliseconds.
int64 timeout_in_ms = 2;- Returns:
- The timeoutInMs.
-
getInterOpThreadPool
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;- Returns:
- The interOpThreadPool.
-
getOutputPartitionGraphs
boolean getOutputPartitionGraphs()Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.
bool output_partition_graphs = 5;- Returns:
- The outputPartitionGraphs.
-
hasDebugOptions
boolean hasDebugOptions()EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;- Returns:
- Whether the debugOptions field is set.
-
getDebugOptions
DebugOptions getDebugOptions()EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;- Returns:
- The debugOptions.
-
getDebugOptionsOrBuilder
DebugOptionsOrBuilder getDebugOptionsOrBuilder()EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6; -
getReportTensorAllocationsUponOom
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;- Returns:
- The reportTensorAllocationsUponOom.
-
hasExperimental
boolean hasExperimental().tensorflow.RunOptions.Experimental experimental = 8;- Returns:
- Whether the experimental field is set.
-
getExperimental
RunOptions.Experimental getExperimental().tensorflow.RunOptions.Experimental experimental = 8;- Returns:
- The experimental.
-
getExperimentalOrBuilder
RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder().tensorflow.RunOptions.Experimental experimental = 8;
-