Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
minhthuc2502 committed Feb 28, 2024
1 parent 5e9dc28 commit 76ebbfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layers/attention.cc
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ namespace ctranslate2 {
if (_tensor_parallel) {
Shape shape = output.shape();
StorageView tmp(std::move(shape), output.dtype(), output.device());
ops::ReduceAll(ops::ReduceAll::RED_OP::SUM)(output, tmp);
ops::ReduceAll ops_reduce_all(ops::ReduceAll::RED_OP::SUM);
ops_reduce_all(output, tmp);
output = std::move(tmp);
}
if (_layer_norm) {
Expand Down

0 comments on commit 76ebbfc

Please sign in to comment.