diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2023-07-20 10:40:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-20 09:40:31 +0100 |
commit | e9c052bf94521b418852a1c5231c12ddce99a78f (patch) | |
tree | 7adbd7bc5fa01415c4285a0d141d297f17525293 /candle-core/src/dummy_cuda_backend.rs | |
parent | dc416243a32236785a21c1184a21ac21ed06fcc4 (diff) | |
download | candle-e9c052bf94521b418852a1c5231c12ddce99a78f.tar.gz candle-e9c052bf94521b418852a1c5231c12ddce99a78f.tar.bz2 candle-e9c052bf94521b418852a1c5231c12ddce99a78f.zip |
Add the comparison operations. (#207)
* Add the comparison operations.
* Add the helper functions on the tensor side.
* More cmp operations.
* Cpu implementation for the comparison operations.
Diffstat (limited to 'candle-core/src/dummy_cuda_backend.rs')
-rw-r--r-- | candle-core/src/dummy_cuda_backend.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/candle-core/src/dummy_cuda_backend.rs b/candle-core/src/dummy_cuda_backend.rs index f7cf8ab8..942e82ed 100644 --- a/candle-core/src/dummy_cuda_backend.rs +++ b/candle-core/src/dummy_cuda_backend.rs @@ -1,4 +1,5 @@ #![allow(dead_code)] +use crate::op::{CmpOp, ReduceOp}; use crate::{CpuStorage, DType, Error, Layout, Result, Shape}; #[derive(Debug, Clone)] @@ -40,7 +41,11 @@ impl crate::backend::BackendStorage for CudaStorage { Err(Error::NotCompiledWithCudaSupport) } - fn reduce_op(&self, _: crate::op::ReduceOp, _: &Layout, _: &[usize]) -> Result<Self> { + fn reduce_op(&self, _: ReduceOp, _: &Layout, _: &[usize]) -> Result<Self> { + Err(Error::NotCompiledWithCudaSupport) + } + + fn cmp(&self, _: CmpOp, _: &Self, _: &Layout, _: &Layout) -> Result<Self> { Err(Error::NotCompiledWithCudaSupport) } |