Skip to content

Commit 10bb6bb

Browse files
committed
Fix function names in error messages
1 parent 3c9ef69 commit 10bb6bb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

torch/lib/THPP/tensors/generic/THSTensor.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ std::size_t THSTensor<real>::elementSize() const {
6666

6767
template<>
6868
long long THSTensor<real>::numel() const {
69-
throw std::runtime_error("THSTensor::>::() not supported");
69+
throw std::runtime_error("THSTensor::numel not supported");
7070
}
7171

7272
template<>
@@ -76,22 +76,22 @@ bool THSTensor<real>::isContiguous() const {
7676

7777
template<>
7878
void* THSTensor<real>::data() {
79-
throw std::runtime_error("THSTensor::>::() not supported");
79+
throw std::runtime_error("THSTensor::data() not supported");
8080
}
8181

8282
template<>
8383
const void* THSTensor<real>::data() const {
84-
throw std::runtime_error("THSTensor::real() not supported");
84+
throw std::runtime_error("THSTensor::data() not supported");
8585
}
8686

8787
template<>
8888
void* THSTensor<real>::cdata() {
89-
throw std::runtime_error("THSTensor::>::() not supported");
89+
throw std::runtime_error("THSTensor::cdata() not supported");
9090
}
9191

9292
template<>
9393
const void* THSTensor<real>::cdata() const {
94-
throw std::runtime_error("THSTensor::real() not supported");
94+
throw std::runtime_error("THSTensor::cdata() not supported");
9595
}
9696

9797
template<>
@@ -135,9 +135,9 @@ auto THSTensor<real>::setStorage(const Storage& storage,
135135

136136
template<>
137137
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& {
141141
throw std::runtime_error("THSTensor::narrow not supported");}
142142

143143

0 commit comments

Comments
 (0)