mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 03:28:50 +00:00
Implement the backend trait for the cpu backend. (#143)
This commit is contained in:
@ -9,6 +9,7 @@ pub(crate) trait BackendStorage: Sized {
|
||||
|
||||
fn device(&self) -> &Self::Device;
|
||||
|
||||
// Maybe this should return a Cow instead so that no copy is done on the cpu case.
|
||||
fn to_cpu_storage(&self) -> Result<CpuStorage>;
|
||||
|
||||
fn affine(&self, _: &Layout, _: f64, _: f64) -> Result<Self>;
|
||||
|
Reference in New Issue
Block a user