pub struct CpuAllocator;Expand description
A tensor allocator that uses the system allocator.
Trait Implementations§
Source§impl Clone for CpuAllocator
impl Clone for CpuAllocator
Source§fn clone(&self) -> CpuAllocator
fn clone(&self) -> CpuAllocator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CpuAllocator
Implement the Default trait for the CpuAllocator struct.
impl Default for CpuAllocator
Implement the Default trait for the CpuAllocator struct.
Source§impl TensorAllocator for CpuAllocator
Implement the TensorAllocator trait for the CpuAllocator struct.
impl TensorAllocator for CpuAllocator
Implement the TensorAllocator trait for the CpuAllocator struct.
Auto Trait Implementations§
impl Freeze for CpuAllocator
impl RefUnwindSafe for CpuAllocator
impl Send for CpuAllocator
impl Sync for CpuAllocator
impl Unpin for CpuAllocator
impl UnwindSafe for CpuAllocator
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