Package tensorflow

Class RpcOptions.RPCOptions

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
tensorflow.RpcOptions.RPCOptions
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, RpcOptions.RPCOptionsOrBuilder
Enclosing class:
RpcOptions

public static final class RpcOptions.RPCOptions extends com.google.protobuf.GeneratedMessageV3 implements RpcOptions.RPCOptionsOrBuilder
 RPC options for distributed runtime.
 
Protobuf type tensorflow.RPCOptions
See Also:
  • Field Details

    • USE_RPC_FOR_INPROCESS_MASTER_FIELD_NUMBER

      public static final int USE_RPC_FOR_INPROCESS_MASTER_FIELD_NUMBER
      See Also:
    • COMPRESSION_ALGORITHM_FIELD_NUMBER

      public static final int COMPRESSION_ALGORITHM_FIELD_NUMBER
      See Also:
    • COMPRESSION_LEVEL_FIELD_NUMBER

      public static final int COMPRESSION_LEVEL_FIELD_NUMBER
      See Also:
    • CACHE_RPC_RESPONSE_FIELD_NUMBER

      public static final int CACHE_RPC_RESPONSE_FIELD_NUMBER
      See Also:
    • DISABLE_SESSION_CONNECTION_SHARING_FIELD_NUMBER

      public static final int DISABLE_SESSION_CONNECTION_SHARING_FIELD_NUMBER
      See Also:
    • NUM_CHANNELS_PER_TARGET_FIELD_NUMBER

      public static final int NUM_CHANNELS_PER_TARGET_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
    • getUseRpcForInprocessMaster

      public boolean getUseRpcForInprocessMaster()
       If true, always use RPC to contact the session target.
      
       If false (the default option), TensorFlow may use an optimized
       transport for client-master communication that avoids the RPC
       stack. This option is primarily for used testing the RPC stack.
       
      bool use_rpc_for_inprocess_master = 1;
      Specified by:
      getUseRpcForInprocessMaster in interface RpcOptions.RPCOptionsOrBuilder
      Returns:
      The useRpcForInprocessMaster.
    • getCompressionAlgorithm

      public String getCompressionAlgorithm()
       The compression algorithm to be used. One of "deflate", "gzip".
       
      string compression_algorithm = 2;
      Specified by:
      getCompressionAlgorithm in interface RpcOptions.RPCOptionsOrBuilder
      Returns:
      The compressionAlgorithm.
    • getCompressionAlgorithmBytes

      public com.google.protobuf.ByteString getCompressionAlgorithmBytes()
       The compression algorithm to be used. One of "deflate", "gzip".
       
      string compression_algorithm = 2;
      Specified by:
      getCompressionAlgorithmBytes in interface RpcOptions.RPCOptionsOrBuilder
      Returns:
      The bytes for compressionAlgorithm.
    • getCompressionLevel

      public int getCompressionLevel()
       If compression_algorithm is set, the compression level to be used.
       From 0 (no compression), up to 3.
       
      int32 compression_level = 3;
      Specified by:
      getCompressionLevel in interface RpcOptions.RPCOptionsOrBuilder
      Returns:
      The compressionLevel.
    • getCacheRpcResponse

      public boolean getCacheRpcResponse()
       Setting cache_rpc_response to true will enable sender side caching of
       response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
       requests . This is only necessary when the network fabric is experiencing a
       significant error rate.  Without it we'll fail a step on an network error,
       while with it we'll be able to complete long steps (like complex
       initializations) in the face of some network errors during RecvTensor.
       
      bool cache_rpc_response = 4;
      Specified by:
      getCacheRpcResponse in interface RpcOptions.RPCOptionsOrBuilder
      Returns:
      The cacheRpcResponse.
    • getDisableSessionConnectionSharing

      public boolean getDisableSessionConnectionSharing()
       Disables TCP connection sharing when opening a new RPC channel.
       
      bool disable_session_connection_sharing = 5;
      Specified by:
      getDisableSessionConnectionSharing in interface RpcOptions.RPCOptionsOrBuilder
      Returns:
      The disableSessionConnectionSharing.
    • getNumChannelsPerTarget

      public int getNumChannelsPerTarget()
       Setting num_channels_per_target > 0 allows uses of multiple channels to
       communicate to the same target. This can be used to improve the aggregate
       throughput on high speed links (e.g 100G) where single connection is not
       sufficient to maximize link utilization. Note that a single RPC only goes
       on a single channel, this only helps in situations where there are multiple
       transfers to the same target overlapping in time.
       
      int32 num_channels_per_target = 6;
      Specified by:
      getNumChannelsPerTarget in interface RpcOptions.RPCOptionsOrBuilder
      Returns:
      The numChannelsPerTarget.
    • 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 RpcOptions.RPCOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RpcOptions.RPCOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RpcOptions.RPCOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RpcOptions.RPCOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RpcOptions.RPCOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RpcOptions.RPCOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RpcOptions.RPCOptions parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static RpcOptions.RPCOptions parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static RpcOptions.RPCOptions.Builder newBuilder()
    • newBuilder

      public static RpcOptions.RPCOptions.Builder newBuilder(RpcOptions.RPCOptions prototype)
    • toBuilder

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

      protected RpcOptions.RPCOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static RpcOptions.RPCOptions getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RpcOptions.RPCOptions> parser()
    • getParserForType

      public com.google.protobuf.Parser<RpcOptions.RPCOptions> 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 RpcOptions.RPCOptions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder