Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions torch_xla/csrc/aten_xla_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,9 @@ at::Tensor AtenXlaType::as_strided(const at::Tensor& self, at::IntArrayRef size,
XlaHelpers::I64Optional(storage_offset)));
}

at::Tensor& AtenXlaType::as_strided_(at::Tensor& self, at::IntArrayRef size,
at::IntArrayRef stride,
c10::optional<int64_t> storage_offset) {
const at::Tensor& AtenXlaType::as_strided_(
const at::Tensor& self, at::IntArrayRef size, at::IntArrayRef stride,
c10::optional<int64_t> storage_offset) {
XLA_FN_COUNTER("xla::");
XLATensor self_tensor = bridge::GetXlaTensor(self);
auto xsize = XlaHelpers::I64List(size);
Expand Down
7 changes: 4 additions & 3 deletions torch_xla/csrc/aten_xla_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@ class AtenXlaType {
at::IntArrayRef stride,
c10::optional<int64_t> storage_offset);

static at::Tensor& as_strided_(at::Tensor& self, at::IntArrayRef size,
at::IntArrayRef stride,
c10::optional<int64_t> storage_offset);
static const at::Tensor& as_strided_(const at::Tensor& self,
at::IntArrayRef size,
at::IntArrayRef stride,
c10::optional<int64_t> storage_offset);

static at::Tensor asin(const at::Tensor& self);

Expand Down