RPCOptionsOrBuilder
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Các lớp con gián tiếp đã biết |
Phương pháp công khai
trừu tượng 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 . |
chuỗi trừu tượng | |
tóm tắt com.google.protobuf.ByteString | |
int trừu tượng | |
trừu tượng boolean | |
trừu tượng boolean | |
Phương pháp công khai
boolean trừu tượng công khai 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;
Chuỗi tóm tắt công khai getCompressionAlgorithm ()
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;
tóm tắt công khai com.google.protobuf.ByteString getCompressionAlgorithmBytes ()
The compression algorithm to be used. One of "deflate", "gzip".
string compression_algorithm = 2;
tóm tắt công khai int getCompressionLevel ()
If compression_algorithm is set, the compression level to be used.
From 0 (no compression), up to 3.
int32 compression_level = 3;
boolean trừu tượng công khai getDisableSessionConnectionSharing ()
Disables TCP connection sharing when opening a new RPC channel.
bool disable_session_connection_sharing = 5;
boolean trừu tượng công khai 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;
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]