We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 122ba52 commit cad3ba9Copy full SHA for cad3ba9
torch_xla/csrc/tensor_impl.cpp
@@ -123,16 +123,7 @@ at::IntArrayRef XLATensorImpl::sizes_custom() const {
123
}
124
125
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();
+ auto sizes = sizes_custom();
136
return c10::SymIntArrayRef(
137
reinterpret_cast<const c10::SymInt*>(sizes.data()),
138
sizes.size());
0 commit comments