RPCOptionsOrBuilder
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Metody publiczne
abstrakcyjna wartość logiczna | getCacheRpcResponse ()
Setting cache_rpc_response to true will enable sender side caching of
response for RecvTensorAsync and RecvBufAsync to allow receiver to retry
requests . |
abstrakcyjny ciąg | |
streszczenie com.google.protobuf.ByteString | |
streszczenie wew | |
abstrakcyjna wartość logiczna | |
abstrakcyjna wartość logiczna | |
Metody publiczne
publiczna abstrakcja logiczna 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;
publiczny streszczenie String getCompressionAlgorithm ()
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;
publiczna abstrakcja com.google.protobuf.ByteString getCompressionAlgorithmBytes ()
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;
publiczna abstrakcja int getCompressionLevel ()
If compression_algorithm is set, the compression level to be used.
From 0 (no compression), up to 3.
int32 compression_level = 3;
publiczna abstrakcyjna wartość logiczna getDisableSessionConnectionSharing ()
Disables TCP connection sharing when opening a new RPC channel.
bool disable_session_connection_sharing = 5;
publiczna wartość logiczna abstrakcyjna 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;
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]