pub struct Sam3 {
pub manifest: Manifest,
pub store: Store,
pub cfg: Config,
pub tokenizer: Tokenizer,
pub timing: Timing,
/* private fields */
}Fields§
§manifest: Manifest§store: Store§cfg: Config§tokenizer: Tokenizer§timing: TimingImplementations§
Source§impl Sam3
impl Sam3
Source§impl Sam3
impl Sam3
Sourcepub fn load(dir: &Path) -> Result<Self, Error>
pub fn load(dir: &Path) -> Result<Self, Error>
Loads the bundle, opens the NPU, loads every kernel and uploads the packed weights.
Sourcepub fn contexts(&self) -> (usize, usize)
pub fn contexts(&self) -> (usize, usize)
Hardware contexts created and evicted so far (evictions happen when another process holds some of the NPU’s contexts).
Auto Trait Implementations§
impl !RefUnwindSafe for Sam3
impl !Sync for Sam3
impl Freeze for Sam3
impl Send for Sam3
impl Unpin for Sam3
impl UnsafeUnpin for Sam3
impl UnwindSafe for Sam3
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