pub struct TensorParallelGroupedOutput<T> { /* private fields */ }Expand description
Rank-local grouped output split around the tensor-parallel reduction.
Implementations§
Source§impl<T> TensorParallelGroupedOutput<T>
impl<T> TensorParallelGroupedOutput<T>
Sourcepub fn new(reducible: T, post_reduce: Option<T>) -> Self
pub fn new(reducible: T, post_reduce: Option<T>) -> Self
Creates one rank-local grouped projection output.
Sourcepub const fn post_reduce(&self) -> Option<&T>
pub const fn post_reduce(&self) -> Option<&T>
Returns the optional post-reduction term.
Sourcepub fn into_parts(self) -> (T, Option<T>)
pub fn into_parts(self) -> (T, Option<T>)
Consumes the output into its reduction contribution and post-reduction term.
Trait Implementations§
Source§impl<T: Clone> Clone for TensorParallelGroupedOutput<T>
impl<T: Clone> Clone for TensorParallelGroupedOutput<T>
Source§fn clone(&self) -> TensorParallelGroupedOutput<T>
fn clone(&self) -> TensorParallelGroupedOutput<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for TensorParallelGroupedOutput<T>
impl<T> RefUnwindSafe for TensorParallelGroupedOutput<T>
impl<T> Send for TensorParallelGroupedOutput<T>
impl<T> Sync for TensorParallelGroupedOutput<T>
impl<T> Unpin for TensorParallelGroupedOutput<T>
impl<T> UnsafeUnpin for TensorParallelGroupedOutput<T>
impl<T> UnwindSafe for TensorParallelGroupedOutput<T>
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