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. Decodes mapped staging directly into the owned output without an intermediate host byte vector; the mapping is released before return.
Sourcepub fn recycle(self, runtime: &WgpuRuntime)
pub fn recycle(self, runtime: &WgpuRuntime)
Returns tensor storage to the runtime pool.
Auto Trait Implementations§
impl !RefUnwindSafe for GpuAiTensor
impl !UnwindSafe for GpuAiTensor
impl Freeze for GpuAiTensor
impl Send for GpuAiTensor
impl Sync for GpuAiTensor
impl Unpin for GpuAiTensor
impl UnsafeUnpin 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