RPCOptionsOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
abstract
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 .
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
int
|
|
abstract
boolean
|
|
abstract
boolean
|
|
Public Methods
public
abstract
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;
public
abstract
String
getCompressionAlgorithm
()
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;
public
abstract
com.google.protobuf.ByteString
getCompressionAlgorithmBytes
()
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;
public
abstract
int
getCompressionLevel
()
If compression_algorithm is set, the compression level to be used.
From 0 (no compression), up to 3.
int32 compression_level = 3;
public
abstract
boolean
getDisableSessionConnectionSharing
()
Disables TCP connection sharing when opening a new RPC channel.
bool disable_session_connection_sharing = 5;
public
abstract
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;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# RPCOptionsOrBuilder\n\npublic interface **RPCOptionsOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [RPCOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/RPCOptions), [RPCOptions.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/RPCOptions.Builder) |--------------------------------------------------------------------------------------------|---------------------------------------| | [RPCOptions](/jvm/api_docs/java/org/tensorflow/proto/framework/RPCOptions) | Protobuf type `tensorflow.RPCOptions` | | [RPCOptions.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/RPCOptions.Builder) | Protobuf type `tensorflow.RPCOptions` | |||\n\n### Public Methods\n\n|-----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [getCacheRpcResponse](/jvm/api_docs/java/org/tensorflow/proto/framework/RPCOptionsOrBuilder#getCacheRpcResponse())() ``` Setting cache_rpc_response to true will enable sender side caching of response for RecvTensorAsync and RecvBufAsync to allow receiver to retry requests . ``` |\n| abstract String | [getCompressionAlgorithm](/jvm/api_docs/java/org/tensorflow/proto/framework/RPCOptionsOrBuilder#getCompressionAlgorithm())() ``` The compression algorithm to be used. ``` |\n| abstract com.google.protobuf.ByteString | [getCompressionAlgorithmBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/RPCOptionsOrBuilder#getCompressionAlgorithmBytes())() ``` The compression algorithm to be used. ``` |\n| abstract int | [getCompressionLevel](/jvm/api_docs/java/org/tensorflow/proto/framework/RPCOptionsOrBuilder#getCompressionLevel())() ``` If compression_algorithm is set, the compression level to be used. ``` |\n| abstract boolean | [getDisableSessionConnectionSharing](/jvm/api_docs/java/org/tensorflow/proto/framework/RPCOptionsOrBuilder#getDisableSessionConnectionSharing())() ``` Disables TCP connection sharing when opening a new RPC channel. ``` |\n| abstract boolean | [getUseRpcForInprocessMaster](/jvm/api_docs/java/org/tensorflow/proto/framework/RPCOptionsOrBuilder#getUseRpcForInprocessMaster())() ``` If true, always use RPC to contact the session target. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract boolean\n**getCacheRpcResponse**\n()\n\n\u003cbr /\u003e\n\n```\n Setting cache_rpc_response to true will enable sender side caching of\n response for RecvTensorAsync and RecvBufAsync to allow receiver to retry\n requests . This is only necessary when the network fabric is experiencing a\n significant error rate. Without it we'll fail a step on an network error,\n while with it we'll be able to complete long steps (like complex\n initializations) in the face of some network errors during RecvTensor.\n \n```\n`bool cache_rpc_response = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getCompressionAlgorithm**\n()\n\n\u003cbr /\u003e\n\n```\n The compression algorithm to be used. One of \"deflate\", \"gzip\".\n \n```\n`string compression_algorithm = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getCompressionAlgorithmBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The compression algorithm to be used. One of \"deflate\", \"gzip\".\n \n```\n`string compression_algorithm = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getCompressionLevel**\n()\n\n\u003cbr /\u003e\n\n```\n If compression_algorithm is set, the compression level to be used.\n From 0 (no compression), up to 3.\n \n```\n`int32 compression_level = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getDisableSessionConnectionSharing**\n()\n\n\u003cbr /\u003e\n\n```\n Disables TCP connection sharing when opening a new RPC channel.\n \n```\n`bool disable_session_connection_sharing = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getUseRpcForInprocessMaster**\n()\n\n\u003cbr /\u003e\n\n```\n If true, always use RPC to contact the session target.\n If false (the default option), TensorFlow may use an optimized\n transport for client-master communication that avoids the RPC\n stack. This option is primarily for used testing the RPC stack.\n \n```\n`bool use_rpc_for_inprocess_master = 1;`\n\n\u003cbr /\u003e"]]