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 . |
सार स्ट्रिंग | |
सार com.google.protobuf.ByteString | |
सार इंट | |
अमूर्त बूलियन | |
अमूर्त बूलियन | |
सार्वजनिक तरीके
सार्वजनिक सार बूलियन 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;
सार्वजनिक सार स्ट्रिंग getCompressionAlgorithm ()
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;
सार्वजनिक सार com.google.protobuf.ByteString getCompressionAlgorithmBytes ()
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;
सार्वजनिक सार int getCompressionLevel ()
If compression_algorithm is set, the compression level to be used.
From 0 (no compression), up to 3.
int32 compression_level = 3;
सार्वजनिक सार बूलियन getDisableSessionConnectionSharing ()
Disables TCP connection sharing when opening a new RPC channel.
bool disable_session_connection_sharing = 5;
सार्वजनिक सार बूलियन 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;
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (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"]]