pub struct State { /* private fields */ }Expand description
A persistent state for stateful CoreML models (RNN, KV-cache, etc.).
State is mutated in-place during prediction and carries forward across multiple predict calls.
Trait Implementations§
impl Send for State
Available on Apple only.
Auto Trait Implementations§
impl Freeze for State
impl !RefUnwindSafe for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl !UnwindSafe for State
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