CPU implementation for upsample-nearest2d. (#339)

This commit is contained in:
Laurent Mazare
2023-08-07 21:07:10 +02:00
committed by GitHub
parent fc265d9dcf
commit d0d7010682
5 changed files with 61 additions and 7 deletions

View File

@ -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)?;