summaryrefslogtreecommitdiff
path: root/candle-core/src/cuda_backend.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-08-07 21:07:10 +0200
committerGitHub <noreply@github.com>2023-08-07 20:07:10 +0100
commitd0d7010682a8fb0678842b1711dfc45e2269ebf5 (patch)
treed49447285dd46e2f07d943315972346e9428138a /candle-core/src/cuda_backend.rs
parentfc265d9dcfc13ee0b03f4a09537a9e7156b29231 (diff)
downloadcandle-d0d7010682a8fb0678842b1711dfc45e2269ebf5.tar.gz
candle-d0d7010682a8fb0678842b1711dfc45e2269ebf5.tar.bz2
candle-d0d7010682a8fb0678842b1711dfc45e2269ebf5.zip
CPU implementation for upsample-nearest2d. (#339)
Diffstat (limited to 'candle-core/src/cuda_backend.rs')
-rw-r--r--candle-core/src/cuda_backend.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/candle-core/src/cuda_backend.rs b/candle-core/src/cuda_backend.rs
index e71ecfce..3c37373a 100644
--- a/candle-core/src/cuda_backend.rs
+++ b/candle-core/src/cuda_backend.rs
@@ -1385,6 +1385,10 @@ impl BackendStorage for CudaStorage {
todo!()
}
+ fn upsample_nearest2d(&self, _: &Layout, _: usize, _: usize) -> Result<Self> {
+ todo!()
+ }
+
fn index_select(&self, ids: &Self, l: &Layout, ids_l: &Layout, dim: usize) -> Result<Self> {
let device = self.device().clone();
let slice = IndexSelect(ids, ids_l, dim).map(&self.slice, &device, l)?;