pub struct GeneralizedEngineConfig<C> {
pub dp_size: NonZeroU32,
pub rank: C,
}Expand description
Construction parameters for a generalized engine.
Fields§
§dp_size: NonZeroU32Number of scheduler cores in the attention-DP group.
rank: CConfiguration cloned into each rank core.
Implementations§
Source§impl<C> GeneralizedEngineConfig<C>
impl<C> GeneralizedEngineConfig<C>
Sourcepub const fn single_rank(rank: C) -> Self
pub const fn single_rank(rank: C) -> Self
Construct a single-rank engine configuration.
Sourcepub const fn attention_dp(dp_size: NonZeroU32, rank: C) -> Self
pub const fn attention_dp(dp_size: NonZeroU32, rank: C) -> Self
Construct an attention-DP engine configuration.
Trait Implementations§
Source§impl<C: Clone> Clone for GeneralizedEngineConfig<C>
impl<C: Clone> Clone for GeneralizedEngineConfig<C>
Source§fn clone(&self) -> GeneralizedEngineConfig<C>
fn clone(&self) -> GeneralizedEngineConfig<C>
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<C: Debug> Debug for GeneralizedEngineConfig<C>
impl<C: Debug> Debug for GeneralizedEngineConfig<C>
impl<C: Eq> Eq for GeneralizedEngineConfig<C>
Source§impl<C: PartialEq> PartialEq for GeneralizedEngineConfig<C>
impl<C: PartialEq> PartialEq for GeneralizedEngineConfig<C>
impl<C: PartialEq> StructuralPartialEq for GeneralizedEngineConfig<C>
Auto Trait Implementations§
impl<C> Freeze for GeneralizedEngineConfig<C>where
C: Freeze,
impl<C> RefUnwindSafe for GeneralizedEngineConfig<C>where
C: RefUnwindSafe,
impl<C> Send for GeneralizedEngineConfig<C>where
C: Send,
impl<C> Sync for GeneralizedEngineConfig<C>where
C: Sync,
impl<C> Unpin for GeneralizedEngineConfig<C>where
C: Unpin,
impl<C> UnsafeUnpin for GeneralizedEngineConfig<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for GeneralizedEngineConfig<C>where
C: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.