pub enum ExpertPlacement {
Cpu,
GpuDevice(u32),
}Expand description
Where a given expert’s weights currently live. GpuDevice-placed
experts only actually execute on a GPU under --features cuda and/or
--features metal (see run_expert_placed); without a GPU feature
the CPU path executes regardless. Device id is meaningful for CUDA;
Metal currently uses the system default device and ignores the id.
Variants§
Trait Implementations§
Source§impl Clone for ExpertPlacement
impl Clone for ExpertPlacement
Source§fn clone(&self) -> ExpertPlacement
fn clone(&self) -> ExpertPlacement
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 moreimpl Copy for ExpertPlacement
Source§impl Debug for ExpertPlacement
impl Debug for ExpertPlacement
impl Eq for ExpertPlacement
Source§impl PartialEq for ExpertPlacement
impl PartialEq for ExpertPlacement
impl StructuralPartialEq for ExpertPlacement
Auto Trait Implementations§
impl Freeze for ExpertPlacement
impl RefUnwindSafe for ExpertPlacement
impl Send for ExpertPlacement
impl Sync for ExpertPlacement
impl Unpin for ExpertPlacement
impl UnsafeUnpin for ExpertPlacement
impl UnwindSafe for ExpertPlacement
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more