Struct candle_nn::var_builder::Shard
source · pub struct Shard {
pub dim: usize,
pub rank: usize,
pub world_size: usize,
}
Fields§
§dim: usize
§rank: usize
§world_size: usize
Trait Implementations§
source§impl PartialEq for Shard
impl PartialEq for Shard
impl Copy for Shard
impl Eq for Shard
impl StructuralPartialEq for Shard
Auto Trait Implementations§
impl Freeze for Shard
impl RefUnwindSafe for Shard
impl Send for Shard
impl Sync for Shard
impl Unpin for Shard
impl UnwindSafe for Shard
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.