Skip to content

Commit 9b91142

Browse files
committed
revert scale zero changes for multiple scaling factors
1 parent 3c9f026 commit 9b91142

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

common/unified/matrix/dense_kernels.template.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ void scale(std::shared_ptr<const DefaultExecutor> exec,
7676
run_kernel(
7777
exec,
7878
[] GKO_KERNEL(auto row, auto col, auto alpha, auto x) {
79-
if (is_zero(zero(alpha[col]))) {
80-
x(row, col) = zero(alpha[col]);
81-
} else {
82-
x(row, col) *= alpha[col];
83-
}
79+
x(row, col) *= alpha[col];
8480
},
8581
x->get_size(), alpha->get_const_values(), x);
8682
} else {

0 commit comments

Comments
 (0)