File tree 2 files changed +0
-10
lines changed
2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,6 @@ c10::SymIntArrayRef XLATensorImpl::sym_sizes_custom() const {
120
120
sizes.size ());
121
121
}
122
122
123
- c10::SymInt XLATensorImpl::sym_numel_custom () const {
124
- auto sym_sizes = sym_sizes_custom ();
125
- c10::SymInt prod{1 };
126
- for (auto s : sym_sizes) {
127
- prod *= s;
128
- }
129
- return prod;
130
- }
131
-
132
123
c10::SymIntArrayRef XLATensorImpl::sym_sizes () const {
133
124
// it isn't strictly necessary to delegate to `sym_sizes_custom`
134
125
// however, it's consistent with pytorch core
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ class XLATensorImpl : public c10::TensorImpl {
35
35
at::IntArrayRef sizes_custom () const override ;
36
36
c10::SymIntArrayRef sym_sizes () const override ;
37
37
c10::SymIntArrayRef sym_sizes_custom () const override ;
38
- c10::SymInt sym_numel_custom () const override ;
39
38
at::IntArrayRef strides_custom () const override ;
40
39
41
40
int64_t dim_custom () const override ;
You can’t perform that action at this time.
0 commit comments