Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix compilation
Browse files Browse the repository at this point in the history
minhthuc2502 committed Feb 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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) {

0 comments on commit 76ebbfc

Please sign in to comment.