Skip to content

Commit

Permalink
revert scale zero changes for multiple scaling factors
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed Feb 19, 2025
1 parent 3c9f026 commit 9b91142
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions common/unified/matrix/dense_kernels.template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ void scale(std::shared_ptr<const DefaultExecutor> exec,
run_kernel(
exec,
[] GKO_KERNEL(auto row, auto col, auto alpha, auto x) {
if (is_zero(zero(alpha[col]))) {
x(row, col) = zero(alpha[col]);
} else {
x(row, col) *= alpha[col];
}
x(row, col) *= alpha[col];
},
x->get_size(), alpha->get_const_values(), x);
} else {
Expand Down

0 comments on commit 9b91142

Please sign in to comment.