Struct DensePlan
pub struct DensePlan<'a, H> { /* private fields */ }Implementations§
§impl<'a, H> DensePlan<'a, H>where
H: Copy,
impl<'a, H> DensePlan<'a, H>where
H: Copy,
pub fn new(
model: DenseModel<'a, H>,
byte_budget: usize,
) -> Result<DensePlan<'a, H>, DensePlanError>
pub fn new( model: DenseModel<'a, H>, byte_budget: usize, ) -> Result<DensePlan<'a, H>, DensePlanError>
Validates dimensions and memory sizes, not model-family interpretation. Missing tensors and numerical failures retain their execution-time order.
pub fn requirements(&self) -> DenseRequirements
pub fn config(&self) -> DenseConfig
pub fn layer_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a, H> Freeze for DensePlan<'a, H>where
H: Freeze,
impl<'a, H> RefUnwindSafe for DensePlan<'a, H>where
H: RefUnwindSafe,
impl<'a, H> Send for DensePlan<'a, H>
impl<'a, H> Sync for DensePlan<'a, H>where
H: Sync,
impl<'a, H> Unpin for DensePlan<'a, H>where
H: Unpin,
impl<'a, H> UnsafeUnpin for DensePlan<'a, H>where
H: UnsafeUnpin,
impl<'a, H> UnwindSafe for DensePlan<'a, H>where
H: UnwindSafe + RefUnwindSafe,
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