[][src]Struct tensorflow_proto::tensorflow::contrib::mpi_collectives::MpiResponse

pub struct MpiResponse {
    pub response_type: i32,
    pub tensor_name: String,
    pub error_message: String,
}

An MPIResponse is a message sent from the coordinator (rank zero) to a rank greater than zero, informing the rank of an operation should be performed now. If the operation requested would result in an error (for example, due to a type or shape mismatch), then the MPIResponse can contain an error and an error message instead. Finally, an MPIResponse can be a DONE message (if there are no more tensors to reduce on this tick of the background loop) or SHUTDOWN if all MPI processes should shut down.

Fields

response_type: i32

Empty if the type is DONE or SHUTDOWN.

tensor_name: Stringerror_message: String

Empty unless response_type is ERROR.

Implementations

impl MpiResponse[src]

pub fn response_type(&self) -> ResponseType[src]

Returns the enum value of response_type, or the default if the field is set to an invalid enum value.

pub fn set_response_type(&mut self, value: ResponseType)[src]

Sets response_type to the provided enum value.

Trait Implementations

impl Clone for MpiResponse[src]

impl Debug for MpiResponse[src]

impl Default for MpiResponse[src]

impl Message for MpiResponse[src]

impl PartialEq<MpiResponse> for MpiResponse[src]

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