pub struct ParameterBankLoadOptions { /* private fields */ }Expand description
Backend-neutral controls for independently addressable parameter-bank residency.
Implementations§
Source§impl ParameterBankLoadOptions
impl ParameterBankLoadOptions
Sourcepub fn new(
members: OffloadConfig,
compact_bank_scratch_bytes: u64,
prefill_compact_bank_target_bytes: u64,
) -> Result<Self, WeightResidencyPolicyError>
pub fn new( members: OffloadConfig, compact_bank_scratch_bytes: u64, prefill_compact_bank_target_bytes: u64, ) -> Result<Self, WeightResidencyPolicyError>
Creates strict independently addressable bank-caching options.
Sourcepub fn validate(self) -> Result<(), WeightResidencyPolicyError>
pub fn validate(self) -> Result<(), WeightResidencyPolicyError>
Revalidates the complete independently addressable residency policy.
Sourcepub const fn offload(self) -> OffloadConfig
pub const fn offload(self) -> OffloadConfig
Returns the independent bank offload limits.
Sourcepub const fn compact_bank_scratch_bytes(self) -> u64
pub const fn compact_bank_scratch_bytes(self) -> u64
Returns the hard compact-bank scratch bound.
Sourcepub const fn prefill_compact_bank_target_bytes(self) -> u64
pub const fn prefill_compact_bank_target_bytes(self) -> u64
Returns the prefill compact-bank target.
Trait Implementations§
Source§impl Clone for ParameterBankLoadOptions
impl Clone for ParameterBankLoadOptions
Source§fn clone(&self) -> ParameterBankLoadOptions
fn clone(&self) -> ParameterBankLoadOptions
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 ParameterBankLoadOptions
Source§impl Debug for ParameterBankLoadOptions
impl Debug for ParameterBankLoadOptions
Source§impl Default for ParameterBankLoadOptions
impl Default for ParameterBankLoadOptions
impl Eq for ParameterBankLoadOptions
Source§impl PartialEq for ParameterBankLoadOptions
impl PartialEq for ParameterBankLoadOptions
impl StructuralPartialEq for ParameterBankLoadOptions
Auto Trait Implementations§
impl Freeze for ParameterBankLoadOptions
impl RefUnwindSafe for ParameterBankLoadOptions
impl Send for ParameterBankLoadOptions
impl Sync for ParameterBankLoadOptions
impl Unpin for ParameterBankLoadOptions
impl UnsafeUnpin for ParameterBankLoadOptions
impl UnwindSafe for ParameterBankLoadOptions
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