pub struct CudaBackend { /* private fields */ }Expand description
One GPU, with its stream, kernels and cuBLASLt handle.
Implementations§
Source§impl CudaBackend
impl CudaBackend
Trait Implementations§
Source§impl Backend for CudaBackend
impl Backend for CudaBackend
Source§fn weight_bytes(&self, w: &Weights) -> usize
fn weight_bytes(&self, w: &Weights) -> usize
Bytes the weights take on the device.
Source§fn plan_bytes(&self, p: &CudaPlan) -> usize
fn plan_bytes(&self, p: &CudaPlan) -> usize
Bytes a plan takes on the device, its arena and staging buffers.
Source§fn upload(&self, tensors: &[HostTensor<'_>], _graph: &Graph) -> Result<Weights>
fn upload(&self, tensors: &[HostTensor<'_>], _graph: &Graph) -> Result<Weights>
Converts a checkpoint’s tensors, indexed as the graph’s weights are. Read more
Auto Trait Implementations§
impl Freeze for CudaBackend
impl RefUnwindSafe for CudaBackend
impl Send for CudaBackend
impl Sync for CudaBackend
impl Unpin for CudaBackend
impl UnsafeUnpin for CudaBackend
impl UnwindSafe for CudaBackend
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