pub enum TensorPlacement {
Replicated,
Local,
Omit,
Rank {
rank: usize,
},
Shard {
axis: usize,
index: usize,
parts: usize,
},
Range {
axis: usize,
start: usize,
end: usize,
},
Indices {
axis: usize,
indices: Vec<usize>,
},
}Expand description
Backend-neutral placement decision for one physical tensor.
Variants§
Replicated
Materialize the complete tensor on every rank.
Local
Materialize the complete tensor on this rank.
Omit
Intentionally omit this tensor on this rank.
Rank
Materialize the complete tensor only on one global rank.
Shard
Materialize an equal contiguous source-tensor slice.
Fields
Range
Materialize an explicit contiguous source-tensor range.
Fields
Indices
Materialize selected source-tensor indices in the supplied order.
Trait Implementations§
Source§impl Clone for TensorPlacement
impl Clone for TensorPlacement
Source§fn clone(&self) -> TensorPlacement
fn clone(&self) -> TensorPlacement
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 moreSource§impl Debug for TensorPlacement
impl Debug for TensorPlacement
impl Eq for TensorPlacement
Source§impl PartialEq for TensorPlacement
impl PartialEq for TensorPlacement
impl StructuralPartialEq for TensorPlacement
Auto Trait Implementations§
impl Freeze for TensorPlacement
impl RefUnwindSafe for TensorPlacement
impl Send for TensorPlacement
impl Sync for TensorPlacement
impl Unpin for TensorPlacement
impl UnsafeUnpin for TensorPlacement
impl UnwindSafe for TensorPlacement
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