summaryrefslogtreecommitdiff
path: root/candle-core/src/dummy_cuda_backend.rs
diff options
context:
space:
mode:
Diffstat (limited to 'candle-core/src/dummy_cuda_backend.rs')
-rw-r--r--candle-core/src/dummy_cuda_backend.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/candle-core/src/dummy_cuda_backend.rs b/candle-core/src/dummy_cuda_backend.rs
index 2d5f955c..99cb7c4e 100644
--- a/candle-core/src/dummy_cuda_backend.rs
+++ b/candle-core/src/dummy_cuda_backend.rs
@@ -123,6 +123,10 @@ impl crate::backend::BackendStorage for CudaStorage {
fn avg_pool2d(&self, _: &Layout, _: (usize, usize), _: (usize, usize)) -> Result<Self> {
Err(Error::NotCompiledWithCudaSupport)
}
+
+ fn upsample_nearest2d(&self, _: &Layout, _: usize, _: usize) -> Result<Self> {
+ Err(Error::NotCompiledWithCudaSupport)
+ }
}
impl crate::backend::BackendDevice for CudaDevice {