public final class RunOptions extends com.google.protobuf.GeneratedMessageV3 implements RunOptionsOrBuilder
Options for a single Run() call.Protobuf type
tensorflow.RunOptions| Modifier and Type | Class and Description |
|---|---|
static class |
RunOptions.Builder
Options for a single Run() call.
|
static class |
RunOptions.Experimental
Everything inside Experimental is subject to change and is not subject
to API stability guarantees in
https://www.tensorflow.org/guide/version_compat.
|
static interface |
RunOptions.ExperimentalOrBuilder |
static class |
RunOptions.TraceLevel
TODO(pbar) Turn this into a TraceOptions proto which allows
tracing to be controlled in a more orthogonal manner?
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DEBUG_OPTIONS_FIELD_NUMBER |
static int |
EXPERIMENTAL_FIELD_NUMBER |
static int |
INTER_OP_THREAD_POOL_FIELD_NUMBER |
static int |
OUTPUT_PARTITION_GRAPHS_FIELD_NUMBER |
static int |
REPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBER |
static int |
TIMEOUT_IN_MS_FIELD_NUMBER |
static int |
TRACE_LEVEL_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
DebugOptions |
getDebugOptions()
EXPERIMENTAL.
|
DebugOptionsOrBuilder |
getDebugOptionsOrBuilder()
EXPERIMENTAL.
|
static RunOptions |
getDefaultInstance() |
RunOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
RunOptions.Experimental |
getExperimental()
.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.
|
com.google.protobuf.Parser<RunOptions> |
getParserForType() |
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).
|
int |
getSerializedSize() |
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; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDebugOptions()
EXPERIMENTAL.
|
boolean |
hasExperimental()
.tensorflow.RunOptions.Experimental experimental = 8; |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RunOptions.Builder |
newBuilder() |
static RunOptions.Builder |
newBuilder(RunOptions prototype) |
RunOptions.Builder |
newBuilderForType() |
protected RunOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RunOptions |
parseDelimitedFrom(java.io.InputStream input) |
static RunOptions |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunOptions |
parseFrom(byte[] data) |
static RunOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunOptions |
parseFrom(java.nio.ByteBuffer data) |
static RunOptions |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunOptions |
parseFrom(com.google.protobuf.ByteString data) |
static RunOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RunOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RunOptions |
parseFrom(java.io.InputStream input) |
static RunOptions |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RunOptions> |
parser() |
RunOptions.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TRACE_LEVEL_FIELD_NUMBER
public static final int TIMEOUT_IN_MS_FIELD_NUMBER
public static final int INTER_OP_THREAD_POOL_FIELD_NUMBER
public static final int OUTPUT_PARTITION_GRAPHS_FIELD_NUMBER
public static final int DEBUG_OPTIONS_FIELD_NUMBER
public static final int REPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBER
public static final int EXPERIMENTAL_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getTraceLevelValue()
.tensorflow.RunOptions.TraceLevel trace_level = 1;getTraceLevelValue in interface RunOptionsOrBuilderpublic RunOptions.TraceLevel getTraceLevel()
.tensorflow.RunOptions.TraceLevel trace_level = 1;getTraceLevel in interface RunOptionsOrBuilderpublic long getTimeoutInMs()
Time to wait for operation to complete in milliseconds.
int64 timeout_in_ms = 2;getTimeoutInMs in interface RunOptionsOrBuilderpublic 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 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 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 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 boolean hasExperimental()
.tensorflow.RunOptions.Experimental experimental = 8;hasExperimental in interface RunOptionsOrBuilderpublic RunOptions.Experimental getExperimental()
.tensorflow.RunOptions.Experimental experimental = 8;getExperimental in interface RunOptionsOrBuilderpublic RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder()
.tensorflow.RunOptions.Experimental experimental = 8;getExperimentalOrBuilder in interface RunOptionsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RunOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunOptions parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RunOptions parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RunOptions parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static RunOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RunOptions parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static RunOptions parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RunOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic RunOptions.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RunOptions.Builder newBuilder()
public static RunOptions.Builder newBuilder(RunOptions prototype)
public RunOptions.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RunOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RunOptions getDefaultInstance()
public static com.google.protobuf.Parser<RunOptions> parser()
public com.google.protobuf.Parser<RunOptions> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RunOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder