Async tensor copying. (#1900)

This commit is contained in:
Laurent Mazare
2024-03-21 13:09:42 +01:00
committed by GitHub
parent bb3ee48039
commit ec97c98e81
7 changed files with 59 additions and 4 deletions

View File

@ -214,6 +214,10 @@ impl crate::backend::BackendDevice for CudaDevice {
Err(Error::NotCompiledWithCudaSupport)
}
fn storage_from_cpu_storage_owned(&self, _: CpuStorage) -> Result<Self::Storage> {
Err(Error::NotCompiledWithCudaSupport)
}
fn rand_uniform(&self, _: &Shape, _: DType, _: f64, _: f64) -> Result<Self::Storage> {
Err(Error::NotCompiledWithCudaSupport)
}