mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 03:54:56 +00:00
CPU implementation for upsample-nearest2d. (#339)
This commit is contained in:
@ -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)?;
|
||||
|
Reference in New Issue
Block a user