#[non_exhaustive]pub enum ResidencyPlan {
FullyResident,
LayerwiseHost {
device_layer_window: usize,
device_budget_bytes: Option<u64>,
host_budget_bytes: Option<u64>,
},
DenseDiskStream {
device_budget_bytes: u64,
host_budget_bytes: u64,
host_lookahead: usize,
background_queue: usize,
},
}Expand description
Static weight placement selected by an execution plan.
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
Retain all selected weights on the execution device.
LayerwiseHost
Retain repeated groups on the host and promote a bounded device window.
Fields
DenseDiskStream
Stream repeated groups through disk, host, and device caches.
Trait Implementations§
Source§impl Clone for ResidencyPlan
impl Clone for ResidencyPlan
Source§fn clone(&self) -> ResidencyPlan
fn clone(&self) -> ResidencyPlan
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 ResidencyPlan
impl Debug for ResidencyPlan
Source§impl<'de> Deserialize<'de> for ResidencyPlan
impl<'de> Deserialize<'de> for ResidencyPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResidencyPlan
Source§impl PartialEq for ResidencyPlan
impl PartialEq for ResidencyPlan
Source§impl Serialize for ResidencyPlan
impl Serialize for ResidencyPlan
impl StructuralPartialEq for ResidencyPlan
Auto Trait Implementations§
impl Freeze for ResidencyPlan
impl RefUnwindSafe for ResidencyPlan
impl Send for ResidencyPlan
impl Sync for ResidencyPlan
impl Unpin for ResidencyPlan
impl UnsafeUnpin for ResidencyPlan
impl UnwindSafe for ResidencyPlan
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