pub struct ModeledResidentStorage { /* private fields */ }Expand description
Resident storage that models readback into host tensor cells.
Implementations§
Source§impl ModeledResidentStorage
impl ModeledResidentStorage
Sourcepub fn allocation(&self) -> &ResidentHandle
pub fn allocation(&self) -> &ResidentHandle
Returns the resident allocation handle.
Sourcepub fn segments(&self) -> &[ModeledResidentSegment]
pub fn segments(&self) -> &[ModeledResidentSegment]
Returns the segmented resident layout for this allocation.
Sourcepub fn resident_tensor(&self) -> Option<Tensor>
pub fn resident_tensor(&self) -> Option<Tensor>
Rebuilds a canonical host tensor without counting a user readback.
Trait Implementations§
Source§impl TensorStorage for ModeledResidentStorage
impl TensorStorage for ModeledResidentStorage
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 ModeledResidentStorage
impl !RefUnwindSafe for ModeledResidentStorage
impl !UnwindSafe for ModeledResidentStorage
impl Send for ModeledResidentStorage
impl Sync for ModeledResidentStorage
impl Unpin for ModeledResidentStorage
impl UnsafeUnpin for ModeledResidentStorage
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