mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
Use a type alias for cuda errors.
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
use crate::{CpuStorage, DType, Result, Shape};
|
||||
use cudarc::driver::CudaSlice;
|
||||
|
||||
pub(crate) type Error = cudarc::driver::DriverError;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct CudaDevice(std::sync::Arc<cudarc::driver::CudaDevice>);
|
||||
|
||||
|
Reference in New Issue
Block a user