pub struct MpiRequest {
pub request_rank: i32,
pub request_type: i32,
pub tensor_type: i32,
pub tensor_name: String,
pub tensor_shape: Option<TensorShapeProto>,
}
Expand description
An MPIRequest is a message sent from a rank greater than zero to the coordinator (rank zero), informing the coordinator of an operation that the rank wants to do and the tensor that it wants to apply the operation to.
Fields§
§request_rank: i32
The request rank is necessary to create a consistent ordering of results, for example in the allgather where the order of outputs should be sorted by rank.
request_type: i32
§tensor_type: i32
§tensor_name: String
§tensor_shape: Option<TensorShapeProto>
Implementations§
Source§impl MpiRequest
impl MpiRequest
Sourcepub fn request_type(&self) -> RequestType
pub fn request_type(&self) -> RequestType
Returns the enum value of request_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_request_type(&mut self, value: RequestType)
pub fn set_request_type(&mut self, value: RequestType)
Sets request_type
to the provided enum value.
Sourcepub fn tensor_type(&self) -> DataType
pub fn tensor_type(&self) -> DataType
Returns the enum value of tensor_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_tensor_type(&mut self, value: DataType)
pub fn set_tensor_type(&mut self, value: DataType)
Sets tensor_type
to the provided enum value.
Trait Implementations§
Source§impl Clone for MpiRequest
impl Clone for MpiRequest
Source§fn clone(&self) -> MpiRequest
fn clone(&self) -> MpiRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MpiRequest
impl Debug for MpiRequest
Source§impl Default for MpiRequest
impl Default for MpiRequest
Source§impl Message for MpiRequest
impl Message for MpiRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for MpiRequest
impl PartialEq for MpiRequest
impl StructuralPartialEq for MpiRequest
Auto Trait Implementations§
impl Freeze for MpiRequest
impl RefUnwindSafe for MpiRequest
impl Send for MpiRequest
impl Sync for MpiRequest
impl Unpin for MpiRequest
impl UnwindSafe for MpiRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more