Skip to content

Commit ceb2954

Browse files
committed
remove an unnecessary cast
1 parent 2430ddf commit ceb2954

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

torch_xla/csrc/tensor_impl.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ at::IntArrayRef XLATensorImpl::sizes_custom() const {
120120

121121
c10::SymIntArrayRef XLATensorImpl::sym_sizes_custom() const {
122122
const_cast<XLATensorImpl*>(this)->SetupSymSizeProperties();
123-
return c10::SymIntArrayRef(
124-
reinterpret_cast<const c10::SymInt*>(sym_sizes_.data()),
125-
sym_sizes_.size());
123+
return c10::SymIntArrayRef(sym_sizes_.data(), sym_sizes_.size());
126124
}
127125

128126
c10::SymInt XLATensorImpl::sym_numel_custom() const {

0 commit comments

Comments
 (0)