Skip to content

Commit f70f9ec

Browse files
committed
revise
1 parent 87452c6 commit f70f9ec

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

src/ATen/native/xpu/TensorAdvancedIndexing.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,6 @@ Tensor& XPUNativeFunctions::index_fill_(
342342

343343
// Handle the case when `self` is 0-dim
344344
Tensor self_nonzero_dim = (self.dim() == 0) ? self.unsqueeze(-1) : self;
345-
346-
dim = maybe_wrap_dim(dim, self.dim());
347-
TORCH_CHECK(index.dim() <= 1, "Index has to be a vector/scalar");
348-
index_func_meta_impl(self, self, dim, index, self, "index_fill");
349345
native::xpu::index_fill_kernel(self, dim, index, source, self);
350346
return self;
351347
}

src/ATen/native/xpu/sycl/Indexing.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -420,18 +420,6 @@ struct IndexFillScalarFunctor {
420420
dst[dst_off] = alpha;
421421
}
422422
};
423-
template <>
424-
struct IndexFillScalarFunctor<bool> {
425-
void operator()(
426-
bool* dst,
427-
bool* src,
428-
int64_t dst_off,
429-
int64_t src_off,
430-
int64_t idx,
431-
bool alpha) const {
432-
dst[dst_off] = alpha;
433-
}
434-
};
435423

436424
void index_fill_kernel(
437425
const Tensor& self,

yaml/xpu_functions.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ supported:
8787
- index_add_
8888
- index_add
8989
- index_fill_.int_Tensor
90-
- index_fill_.int_Scalar
9190
- index_fill.int_Tensor
92-
- index_fill.int_Scalar
9391
- index_select
9492
- index_select.out
9593
- gcd

0 commit comments

Comments
 (0)