pub struct RpcOptions {
pub use_rpc_for_inprocess_master: bool,
pub compression_algorithm: String,
pub compression_level: i32,
pub cache_rpc_response: bool,
pub disable_session_connection_sharing: bool,
}
Fields§
§use_rpc_for_inprocess_master: bool
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.
compression_algorithm: String
The compression algorithm to be used. One of “deflate”, “gzip”.
compression_level: i32
If compression_algorithm is set, the compression level to be used. From 0 (no compression), up to 3.
cache_rpc_response: bool
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.
disable_session_connection_sharing: bool
Disables TCP connection sharing when opening a new RPC channel.
Trait Implementations§
Source§impl Clone for RpcOptions
impl Clone for RpcOptions
Source§fn clone(&self) -> RpcOptions
fn clone(&self) -> RpcOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RpcOptions
impl Debug for RpcOptions
Source§impl Default for RpcOptions
impl Default for RpcOptions
Source§impl Message for RpcOptions
impl Message for RpcOptions
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.