Package org.tensorflow.framework
Class RunOptions
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.RunOptions
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,RunOptionsOrBuilder
public final class RunOptions
extends com.google.protobuf.GeneratedMessageV3
implements RunOptionsOrBuilder
Options for a single Run() call.Protobuf type
tensorflow.RunOptions- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOptions for a single Run() call.static final classEverything inside Experimental is subject to change and is not subject to API stability guarantees in https://www.tensorflow.org/guide/version_compat.static interfacestatic enumTODO(pbar) Turn this into a TraceOptions proto which allows tracing to be controlled in a more orthogonal manner?Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanEXPERIMENTAL.EXPERIMENTAL.static RunOptionsstatic final com.google.protobuf.Descriptors.Descriptor.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.com.google.protobuf.Parser<RunOptions> 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).intlongTime 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;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic RunOptions.Builderstatic RunOptions.BuildernewBuilder(RunOptions prototype) protected RunOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static RunOptionsparseDelimitedFrom(InputStream input) static RunOptionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RunOptionsparseFrom(byte[] data) static RunOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RunOptionsparseFrom(com.google.protobuf.ByteString data) static RunOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RunOptionsparseFrom(com.google.protobuf.CodedInputStream input) static RunOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RunOptionsparseFrom(InputStream input) static RunOptionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RunOptionsparseFrom(ByteBuffer data) static RunOptionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RunOptions> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TRACE_LEVEL_FIELD_NUMBER
public static final int TRACE_LEVEL_FIELD_NUMBER- See Also:
-
TIMEOUT_IN_MS_FIELD_NUMBER
public static final int TIMEOUT_IN_MS_FIELD_NUMBER- See Also:
-
INTER_OP_THREAD_POOL_FIELD_NUMBER
public static final int INTER_OP_THREAD_POOL_FIELD_NUMBER- See Also:
-
OUTPUT_PARTITION_GRAPHS_FIELD_NUMBER
public static final int OUTPUT_PARTITION_GRAPHS_FIELD_NUMBER- See Also:
-
DEBUG_OPTIONS_FIELD_NUMBER
public static final int DEBUG_OPTIONS_FIELD_NUMBER- See Also:
-
REPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBER
public static final int REPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBER- See Also:
-
EXPERIMENTAL_FIELD_NUMBER
public static final int EXPERIMENTAL_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getTraceLevelValue
public int getTraceLevelValue().tensorflow.RunOptions.TraceLevel trace_level = 1;- Specified by:
getTraceLevelValuein interfaceRunOptionsOrBuilder- Returns:
- The enum numeric value on the wire for traceLevel.
-
getTraceLevel
.tensorflow.RunOptions.TraceLevel trace_level = 1;- Specified by:
getTraceLevelin interfaceRunOptionsOrBuilder- Returns:
- The traceLevel.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getExperimentalOrBuilder
.tensorflow.RunOptions.Experimental experimental = 8;- Specified by:
getExperimentalOrBuilderin interfaceRunOptionsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RunOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RunOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RunOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RunOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RunOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-