Skip to content

Commit

Permalink
Update aten_xla_type.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfeiBai authored Jan 17, 2024
1 parent 66660de commit f9618ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions torch_xla/csrc/aten_xla_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2648,6 +2648,14 @@ at::Tensor scatter_reduce_helper(const at::Tensor& self, int64_t dim,
}
}

at::Tensor XLANativeFunctions::scan(const at::Tensor& self,
const Callable f,
const at::Tensor& init,
const at::Tensor& xs) {
TORCH_LAZY_FN_COUNTER_TIMED_TRACING("xla::");
return bridge::AtenFromXlaTensor(tensor_methods::scan(f, init, xs));
}

at::Tensor XLANativeFunctions::scatter(const at::Tensor& self, int64_t dim,
const at::Tensor& index,
const at::Tensor& src) {
Expand Down

0 comments on commit f9618ea

Please sign in to comment.