pub struct Allocation {
pub handle: Handle,
pub strides: Vec<usize>,
}Expand description
An allocation with associated strides. Strides depend on tensor layout.
Fields§
§handle: HandleThe handle for the memory resource
strides: Vec<usize>The strides of the tensor
Implementations§
Source§impl Allocation
impl Allocation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Allocation
impl RefUnwindSafe for Allocation
impl Send for Allocation
impl Sync for Allocation
impl Unpin for Allocation
impl UnwindSafe for Allocation
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