From 9a465e1b2601195b65f1422f16793d6825252231 Mon Sep 17 00:00:00 2001 From: Laurent Mazare Date: Wed, 13 Sep 2023 17:50:39 +0200 Subject: Add 1d upsampling. (#839) * Add 1d upsampling. * Add the interpolate functions. --- candle-core/src/dummy_cuda_backend.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'candle-core/src/dummy_cuda_backend.rs') diff --git a/candle-core/src/dummy_cuda_backend.rs b/candle-core/src/dummy_cuda_backend.rs index 6c896653..5cc9c6d8 100644 --- a/candle-core/src/dummy_cuda_backend.rs +++ b/candle-core/src/dummy_cuda_backend.rs @@ -152,6 +152,10 @@ impl crate::backend::BackendStorage for CudaStorage { Err(Error::NotCompiledWithCudaSupport) } + fn upsample_nearest1d(&self, _: &Layout, _: usize) -> Result { + Err(Error::NotCompiledWithCudaSupport) + } + fn upsample_nearest2d(&self, _: &Layout, _: usize, _: usize) -> Result { Err(Error::NotCompiledWithCudaSupport) } -- cgit v1.2.3