pub struct AdamwKernel { /* private fields */ }Expand description
A pre-compiled adamw_step kernel ready for use in LoadedModel::adamw_step.
Create via:
ⓘ
let ptx = std::fs::read(compile_kernel(&AdamwStep::new(1024), &target, true)?)?;
let kernel = AdamwKernel::from_ptx(&ptx)?;Implementations§
Auto Trait Implementations§
impl Freeze for AdamwKernel
impl RefUnwindSafe for AdamwKernel
impl !Send for AdamwKernel
impl !Sync for AdamwKernel
impl Unpin for AdamwKernel
impl UnsafeUnpin for AdamwKernel
impl UnwindSafe for AdamwKernel
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