pub struct GpuAiTensor { /* private fields */ }Expand description
Device-resident planar f32 tensor with explicit optional readback.
Implementations§
Source§impl GpuAiTensor
impl GpuAiTensor
Sourcepub const fn receipt(&self) -> &GpuImageReceipt
pub const fn receipt(&self) -> &GpuImageReceipt
Returns cumulative transfer and stage accounting.
Sourcepub fn readback_f32(&mut self, runtime: &WgpuRuntime) -> SpatialResult<Vec<f32>>
pub fn readback_f32(&mut self, runtime: &WgpuRuntime) -> SpatialResult<Vec<f32>>
Explicitly reads planar values back to host memory.
Sourcepub fn recycle(self, runtime: &WgpuRuntime)
pub fn recycle(self, runtime: &WgpuRuntime)
Returns tensor storage to the runtime pool.
Auto Trait Implementations§
impl Freeze for GpuAiTensor
impl !RefUnwindSafe for GpuAiTensor
impl Send for GpuAiTensor
impl Sync for GpuAiTensor
impl Unpin for GpuAiTensor
impl UnsafeUnpin for GpuAiTensor
impl !UnwindSafe for GpuAiTensor
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