Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
黄宇扬 committed Sep 4, 2024
1 parent f5db1e7 commit 2c93a8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/devices/cuda/cudadevicebatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,7 @@ namespace fastllm {
}
aveLen /= batch;
if (qs[0]->dataType == DataType::FLOAT32 ||
(aveLen < 512 && batch >= 4) ||
(aveLen < 4096 && batch >= 32)) {
true) {
for (int i = 0; i < batch; i++) {
outputs[i]->Allocate();
}
Expand Down

0 comments on commit 2c93a8d

Please sign in to comment.