pub struct ResidencyPlan {
pub device_bytes_planned: u64,
pub vram_budget_bytes: u64,
/* private fields */
}Expand description
The output of PlacementPlan::plan_layers_against_global_budget:
one per-layer PlacementPlan view over a single, globally-accounted
device budget. device_bytes_planned <= vram_budget_bytes holds by
construction across ALL layers combined – the property the old
per-layer planning could not provide.
Fields§
§device_bytes_planned: u64Total bytes this plan places on the device, summed across every layer.
vram_budget_bytes: u64The single budget every layer’s placements were accounted against.
Implementations§
Source§impl ResidencyPlan
impl ResidencyPlan
pub fn layer_plan(&self, layer: usize) -> &PlacementPlan
pub fn n_layers(&self) -> usize
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
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