#[non_exhaustive]pub enum OrdinaryWeightResidency {
FullyResident,
LayerwiseHost(LayerwiseLoadOptions),
DenseDiskStream(DenseDiskStreamLoadOptions),
}Expand description
Placement of ordinary parameters beside independently addressable banks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FullyResident
Keep every ordinary parameter resident on the execution device.
LayerwiseHost(LayerwiseLoadOptions)
Eagerly materialize ordinary units on host behind a device window.
DenseDiskStream(DenseDiskStreamLoadOptions)
Leave ordinary units cold on disk behind finite tier caches.
Implementations§
Source§impl OrdinaryWeightResidency
impl OrdinaryWeightResidency
Sourcepub const fn layers(self) -> LayerWeightResidency
pub const fn layers(self) -> LayerWeightResidency
Returns the corresponding generalized layer policy.
Trait Implementations§
Source§impl Clone for OrdinaryWeightResidency
impl Clone for OrdinaryWeightResidency
Source§fn clone(&self) -> OrdinaryWeightResidency
fn clone(&self) -> OrdinaryWeightResidency
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 OrdinaryWeightResidency
Source§impl Debug for OrdinaryWeightResidency
impl Debug for OrdinaryWeightResidency
impl Eq for OrdinaryWeightResidency
Source§impl From<OrdinaryWeightResidency> for LayerWeightResidency
impl From<OrdinaryWeightResidency> for LayerWeightResidency
Source§fn from(value: OrdinaryWeightResidency) -> Self
fn from(value: OrdinaryWeightResidency) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OrdinaryWeightResidency
impl PartialEq for OrdinaryWeightResidency
impl StructuralPartialEq for OrdinaryWeightResidency
Auto Trait Implementations§
impl Freeze for OrdinaryWeightResidency
impl RefUnwindSafe for OrdinaryWeightResidency
impl Send for OrdinaryWeightResidency
impl Sync for OrdinaryWeightResidency
impl Unpin for OrdinaryWeightResidency
impl UnsafeUnpin for OrdinaryWeightResidency
impl UnwindSafe for OrdinaryWeightResidency
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