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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Options for a single Run() call.
    static final class 
    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 
     
    static enum 
    TODO(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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    EXPERIMENTAL.
    EXPERIMENTAL.
    static RunOptions
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    .tensorflow.RunOptions.Experimental experimental = 8;
    .tensorflow.RunOptions.Experimental experimental = 8;
    int
    The thread pool to use, if session_inter_op_thread_pool is configured.
    boolean
    Whether the partition graph(s) executed by the executor(s) should be outputted via RunMetadata.
    com.google.protobuf.Parser<RunOptions>
     
    boolean
    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
     
    long
    Time to wait for operation to complete in milliseconds.
    .tensorflow.RunOptions.TraceLevel trace_level = 1;
    int
    .tensorflow.RunOptions.TraceLevel trace_level = 1;
    boolean
    EXPERIMENTAL.
    boolean
    .tensorflow.RunOptions.Experimental experimental = 8;
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static RunOptions
     
    static RunOptions
    parseDelimitedFrom(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(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
     
    static RunOptions
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static RunOptions
     
    static RunOptions
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<RunOptions>
     
     
    void
    writeTo(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, 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

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods 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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getTraceLevelValue

      public int getTraceLevelValue()
      .tensorflow.RunOptions.TraceLevel trace_level = 1;
      Specified by:
      getTraceLevelValue in interface RunOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for traceLevel.
    • getTraceLevel

      public RunOptions.TraceLevel getTraceLevel()
      .tensorflow.RunOptions.TraceLevel trace_level = 1;
      Specified by:
      getTraceLevel in interface RunOptionsOrBuilder
      Returns:
      The traceLevel.
    • getTimeoutInMs

      public long getTimeoutInMs()
       Time to wait for operation to complete in milliseconds.
       
      int64 timeout_in_ms = 2;
      Specified by:
      getTimeoutInMs in interface RunOptionsOrBuilder
      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:
      getInterOpThreadPool in interface RunOptionsOrBuilder
      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:
      getOutputPartitionGraphs in interface RunOptionsOrBuilder
      Returns:
      The outputPartitionGraphs.
    • hasDebugOptions

      public boolean hasDebugOptions()
       EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
       
      .tensorflow.DebugOptions debug_options = 6;
      Specified by:
      hasDebugOptions in interface RunOptionsOrBuilder
      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:
      getDebugOptions in interface RunOptionsOrBuilder
      Returns:
      The debugOptions.
    • getDebugOptionsOrBuilder

      public DebugOptionsOrBuilder getDebugOptionsOrBuilder()
       EXPERIMENTAL.  Options used to initialize DebuggerState, if enabled.
       
      .tensorflow.DebugOptions debug_options = 6;
      Specified by:
      getDebugOptionsOrBuilder in interface RunOptionsOrBuilder
    • 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 interface RunOptionsOrBuilder
      Returns:
      The reportTensorAllocationsUponOom.
    • hasExperimental

      public boolean hasExperimental()
      .tensorflow.RunOptions.Experimental experimental = 8;
      Specified by:
      hasExperimental in interface RunOptionsOrBuilder
      Returns:
      Whether the experimental field is set.
    • getExperimental

      public RunOptions.Experimental getExperimental()
      .tensorflow.RunOptions.Experimental experimental = 8;
      Specified by:
      getExperimental in interface RunOptionsOrBuilder
      Returns:
      The experimental.
    • getExperimentalOrBuilder

      public RunOptions.ExperimentalOrBuilder getExperimentalOrBuilder()
      .tensorflow.RunOptions.Experimental experimental = 8;
      Specified by:
      getExperimentalOrBuilder in interface RunOptionsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static RunOptions parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RunOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RunOptions parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RunOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RunOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RunOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RunOptions.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RunOptions.Builder newBuilder()
    • newBuilder

      public static RunOptions.Builder newBuilder(RunOptions prototype)
    • toBuilder

      public RunOptions.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RunOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.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:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public RunOptions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder