[][src]Struct tensorflow_proto::tensorflow::eager::CreateContextRequest

pub struct CreateContextRequest {
    pub server_def: Option<ServerDef>,
    pub async: bool,
    pub keep_alive_secs: i64,
    pub version_def: Option<VersionDef>,
    pub cluster_device_attributes: Vec<DeviceAttributes>,
    pub context_id: u64,
}

Fields

server_def: Option<ServerDef>

Identifies the full cluster, and this particular worker's position within.

async: bool

Whether the ops on the worker should be executed synchronously or asynchronously. By default, ops are executed synchronously.

keep_alive_secs: i64

Number of seconds to keep the context alive. If more than keep_alive_secs has passed since a particular context has been communicated with, it will be garbage collected.

version_def: Option<VersionDef>

This is the version for all the ops that will be enqueued by the client.

cluster_device_attributes: Vec<DeviceAttributes>

Device attributes in the cluster

context_id: u64

The ID of the created context. This is usually a randomly generated number, that will be used to identify the context in future requests to the service. Contexts are not persisted through server restarts. This ID will be used for all future communications as well. It is essential that both ends use this ID for selecting a rendezvous to get everything to match.

Trait Implementations

impl Clone for CreateContextRequest[src]

impl Debug for CreateContextRequest[src]

impl Default for CreateContextRequest[src]

impl Message for CreateContextRequest[src]

impl PartialEq<CreateContextRequest> for CreateContextRequest[src]

impl StructuralPartialEq for CreateContextRequest[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.