diff options
author | laurent <laurent.mazare@gmail.com> | 2023-06-22 08:33:32 +0100 |
---|---|---|
committer | laurent <laurent.mazare@gmail.com> | 2023-06-22 08:33:32 +0100 |
commit | 0a758ffa0523629336e7224fa181dd1e76d8919c (patch) | |
tree | 8338a53820ea5a124f97ea9b1fca91788f0f4e4f /src/dummy_cuda_backend.rs | |
parent | fc26bab3ede511c3c4d2f1afb15f58eb6c588c94 (diff) | |
download | candle-0a758ffa0523629336e7224fa181dd1e76d8919c.tar.gz candle-0a758ffa0523629336e7224fa181dd1e76d8919c.tar.bz2 candle-0a758ffa0523629336e7224fa181dd1e76d8919c.zip |
Add the fill kernel and use it for 'ones'.
Diffstat (limited to 'src/dummy_cuda_backend.rs')
-rw-r--r-- | src/dummy_cuda_backend.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dummy_cuda_backend.rs b/src/dummy_cuda_backend.rs index 85b5f598..2eb393c1 100644 --- a/src/dummy_cuda_backend.rs +++ b/src/dummy_cuda_backend.rs @@ -25,6 +25,10 @@ impl CudaDevice { Err(Error::NotCompiledWithCudaSupport) } + pub(crate) fn ones_impl(&self, _shape: &Shape, _dtype: DType) -> Result<CudaStorage> { + Err(Error::NotCompiledWithCudaSupport) + } + pub(crate) fn cuda_from_cpu_storage(&self, _: &CpuStorage) -> Result<CudaStorage> { Err(Error::NotCompiledWithCudaSupport) } |