Skip to content

Commit 5254846

Browse files
stegbensoumith
authored andcommitted
fix typo of error msg of cmul in THSTensorMath (pytorch#2158)
1 parent f3f4789 commit 5254846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/lib/THS/generic/THSTensorMath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void THSTensor_(csub)(THSTensor *r_, THSTensor *t, real value, THSTensor *src) {
184184

185185
void THSTensor_(cmul)(THSTensor *r_, THSTensor *t_, THSTensor *src_) {
186186
if(!THSTensor_(isSameSizeAs)(t_, src_)) {
187-
THError("cadd operands have incompatible sizes or dimension types");
187+
THError("cmul operands have incompatible sizes or dimension types");
188188
}
189189

190190
if (src_->nnz == 0 || t_->nnz == 0) {

0 commit comments

Comments
 (0)