Skip to content

Commit cad3ba9

Browse files
committed
corrections after rebase
1 parent 122ba52 commit cad3ba9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

torch_xla/csrc/tensor_impl.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,7 @@ at::IntArrayRef XLATensorImpl::sizes_custom() const {
123123
}
124124

125125
c10::SymIntArrayRef XLATensorImpl::sym_sizes_custom() const {
126-
if (true) { /* TODO(@miladm): replace this with a flag */
127-
const_cast<XLATensorImpl*>(this)->SetupSymSizeProperties();
128-
} else {
129-
const_cast<XLATensorImpl*>(this)->SetupSizeProperties();
130-
}
131-
return sizes_default();
132-
}
133-
134-
c10::SymIntArrayRef XLATensorImpl::sym_sizes_custom() const {
135-
auto sizes = sizes_default();
126+
auto sizes = sizes_custom();
136127
return c10::SymIntArrayRef(
137128
reinterpret_cast<const c10::SymInt*>(sizes.data()),
138129
sizes.size());

0 commit comments

Comments
 (0)