pub struct CpuScopeGuard(/* private fields */);Expand description
RAII form of cpu_scope, used when a device-prefix graph hands a whole
remainder of the forward pass to the host. Without a guard around that
tail, its ordinary per-op hooks re-entered the GPU and streamed the rest of
an over-size model through the residency arena, defeating the prefix’s VRAM
bound at the driver-allocation level.
Trait Implementations§
Source§impl Drop for CpuScopeGuard
impl Drop for CpuScopeGuard
Auto Trait Implementations§
impl Freeze for CpuScopeGuard
impl RefUnwindSafe for CpuScopeGuard
impl Send for CpuScopeGuard
impl Sync for CpuScopeGuard
impl Unpin for CpuScopeGuard
impl UnsafeUnpin for CpuScopeGuard
impl UnwindSafe for CpuScopeGuard
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