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
4 changes: 2 additions & 2 deletions test/cpp/test_symint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ TEST(SymintTest, TestSaticSymints) {
// We have to init a std::vector<int64_t> here. Passing a temp variable to
// fromIntArrayRef will result in unexpected behavior.
std::vector<int64_t> sizes = {6, 19, 10};
c10::SymIntArrayRef static_symints = c10::fromIntArrayRef(sizes);
c10::SymIntArrayRef static_symints = c10::fromIntArrayRefSlow(sizes);
SymIntElements si_element(static_symints);

std::vector<int64_t> upper_bound = si_element.GetUpperBounds();
Expand Down Expand Up @@ -215,4 +215,4 @@ TEST(SymintTest, TestDynamicSymintArithmetic) {
}

} // namespace cpp_test
} // namespace torch_xla
} // namespace torch_xla
2 changes: 1 addition & 1 deletion torch_xla/csrc/aten_xla_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ at::Tensor XLANativeFunctions::_trilinear(
at::Tensor XLANativeFunctions::_unsafe_view(const at::Tensor& self,
at::IntArrayRef size) {
XLA_FN_COUNTER("xla::");
return view_symint(self, c10::fromIntArrayRef(size));
return view_symint(self, c10::fromIntArrayRefSlow(size));
}

at::Tensor XLANativeFunctions::add(const at::Tensor& self,
Expand Down