[][src]Struct tensorflow_proto::tensorflow::RpcOptions

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

impl Clone for RpcOptions[src]

impl Debug for RpcOptions[src]

impl Default for RpcOptions[src]

impl Message for RpcOptions[src]

impl PartialEq<RpcOptions> for RpcOptions[src]

impl StructuralPartialEq for RpcOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.