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,java.io.Serializable,RunOptionsOrBuilder
public final class RunOptions extends com.google.protobuf.GeneratedMessageV3 implements RunOptionsOrBuilder
Options for a single Run() call.
Protobuf typetensorflow.RunOptions- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRunOptions.BuilderOptions for a single Run() call.static classRunOptions.ExperimentalEverything inside Experimental is subject to change and is not subject to API stability guarantees in https://www.tensorflow.org/guide/version_compat.static interfaceRunOptions.ExperimentalOrBuilderstatic classRunOptions.TraceLevelTODO(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<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
-
-
Field Summary
Fields Modifier and Type Field Description static intDEBUG_OPTIONS_FIELD_NUMBERstatic intEXPERIMENTAL_FIELD_NUMBERstatic intINTER_OP_THREAD_POOL_FIELD_NUMBERstatic intOUTPUT_PARTITION_GRAPHS_FIELD_NUMBERstatic intREPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBERstatic intTIMEOUT_IN_MS_FIELD_NUMBERstatic intTRACE_LEVEL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)DebugOptionsgetDebugOptions()EXPERIMENTAL.DebugOptionsOrBuildergetDebugOptionsOrBuilder()EXPERIMENTAL.static RunOptionsgetDefaultInstance()RunOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()RunOptions.ExperimentalgetExperimental().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.com.google.protobuf.Parser<RunOptions>getParserForType()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).intgetSerializedSize()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;com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasDebugOptions()EXPERIMENTAL.booleanhasExperimental().tensorflow.RunOptions.Experimental experimental = 8;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RunOptions.BuildernewBuilder()static RunOptions.BuildernewBuilder(RunOptions prototype)RunOptions.BuildernewBuilderForType()protected RunOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RunOptionsparseDelimitedFrom(java.io.InputStream input)static RunOptionsparseDelimitedFrom(java.io.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(java.io.InputStream input)static RunOptionsparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RunOptionsparseFrom(java.nio.ByteBuffer data)static RunOptionsparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RunOptions>parser()RunOptions.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TRACE_LEVEL_FIELD_NUMBER
public static final int TRACE_LEVEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEOUT_IN_MS_FIELD_NUMBER
public static final int TIMEOUT_IN_MS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTER_OP_THREAD_POOL_FIELD_NUMBER
public static final int INTER_OP_THREAD_POOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_PARTITION_GRAPHS_FIELD_NUMBER
public static final int OUTPUT_PARTITION_GRAPHS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEBUG_OPTIONS_FIELD_NUMBER
public static final int DEBUG_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBER
public static final int REPORT_TENSOR_ALLOCATIONS_UPON_OOM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPERIMENTAL_FIELD_NUMBER
public static final int EXPERIMENTAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
public RunOptions.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
public DebugOptions getDebugOptions()
EXPERIMENTAL. Options used to initialize DebuggerState, if enabled.
.tensorflow.DebugOptions debug_options = 6;- Specified by:
getDebugOptionsin interfaceRunOptionsOrBuilder- Returns:
- The debugOptions.
-
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.
-
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.
-
getExperimentalOrBuilder
public RunOptions.ExperimentalOrBuilder 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
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RunOptions parseFrom(java.nio.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
public static RunOptions parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RunOptions parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RunOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static RunOptions parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RunOptions parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static RunOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public RunOptions.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RunOptions.Builder newBuilder()
-
newBuilder
public static RunOptions.Builder newBuilder(RunOptions prototype)
-
toBuilder
public RunOptions.Builder 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
public static RunOptions getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RunOptions> parser()
-
getParserForType
public com.google.protobuf.Parser<RunOptions> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RunOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-