@@ -66,7 +66,7 @@ std::size_t THSTensor<real>::elementSize() const {
66
66
67
67
template <>
68
68
long long THSTensor<real>::numel() const {
69
- throw std::runtime_error (" THSTensor::>::() not supported" );
69
+ throw std::runtime_error (" THSTensor::numel not supported" );
70
70
}
71
71
72
72
template <>
@@ -76,22 +76,22 @@ bool THSTensor<real>::isContiguous() const {
76
76
77
77
template <>
78
78
void * THSTensor<real>::data() {
79
- throw std::runtime_error (" THSTensor::>:: () not supported" );
79
+ throw std::runtime_error (" THSTensor::data () not supported" );
80
80
}
81
81
82
82
template <>
83
83
const void * THSTensor<real>::data() const {
84
- throw std::runtime_error (" THSTensor::real () not supported" );
84
+ throw std::runtime_error (" THSTensor::data () not supported" );
85
85
}
86
86
87
87
template <>
88
88
void * THSTensor<real>::cdata() {
89
- throw std::runtime_error (" THSTensor::>:: () not supported" );
89
+ throw std::runtime_error (" THSTensor::cdata () not supported" );
90
90
}
91
91
92
92
template <>
93
93
const void * THSTensor<real>::cdata() const {
94
- throw std::runtime_error (" THSTensor::real () not supported" );
94
+ throw std::runtime_error (" THSTensor::cdata () not supported" );
95
95
}
96
96
97
97
template <>
@@ -135,9 +135,9 @@ auto THSTensor<real>::setStorage(const Storage& storage,
135
135
136
136
template <>
137
137
auto THSTensor<real>::narrow(const Tensor& src,
138
- int dimension,
139
- long firstIndex,
140
- long size) -> THSTensor& {
138
+ int dimension,
139
+ long firstIndex,
140
+ long size) -> THSTensor& {
141
141
throw std::runtime_error (" THSTensor::narrow not supported" );}
142
142
143
143
0 commit comments