pub struct CudaResidentStorage { /* private fields */ }Expand description
Resident storage for a CUDA matmul result.
Implementations§
Source§impl CudaResidentStorage
impl CudaResidentStorage
Sourcepub fn new(
site: Symbol,
allocation: CudaAllocation,
shape: Vec<usize>,
dtype: Symbol,
cells: Arc<[Value]>,
) -> Self
pub fn new( site: Symbol, allocation: CudaAllocation, shape: Vec<usize>, dtype: Symbol, cells: Arc<[Value]>, ) -> Self
Builds resident CUDA storage around checked host-equivalent cells.
Sourcepub fn allocation(&self) -> &CudaAllocation
pub fn allocation(&self) -> &CudaAllocation
Returns the resident allocation evidence.
Sourcepub fn resident_tensor(&self) -> Option<Tensor>
pub fn resident_tensor(&self) -> Option<Tensor>
Rebuilds a canonical tensor without counting a user readback.
Trait Implementations§
Source§impl TensorStorage for CudaResidentStorage
impl TensorStorage for CudaResidentStorage
Source§fn location(&self) -> TensorLocation
fn location(&self) -> TensorLocation
The current storage placement.
Source§fn materialize(&self) -> Result<Arc<dyn TensorStorage>>
fn materialize(&self) -> Result<Arc<dyn TensorStorage>>
Returns a host-observable form of this storage. Read more
Auto Trait Implementations§
impl !Freeze for CudaResidentStorage
impl !RefUnwindSafe for CudaResidentStorage
impl !UnwindSafe for CudaResidentStorage
impl Send for CudaResidentStorage
impl Sync for CudaResidentStorage
impl Unpin for CudaResidentStorage
impl UnsafeUnpin for CudaResidentStorage
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