Skip to content

Commit

Permalink
fix: need_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
yirongjie committed Jul 21, 2024
1 parent da8909a commit 00f29c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Module.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Module {
if(input.batch() == 0){
Tensor::gph_[input.name()] = input;
}
if(input.sequence()!=1 && !last_shape_bshd_.empty()){
if(inputs[0].sequence()!=1 && !last_shape_bshd_.empty()){
// if LLM/VLLM model, the `need_setup` should be `true`
if(input.batch() == last_shape_bshd_[i][0] &
input.sequence() == last_shape_bshd_[i][1] &
Expand Down

0 comments on commit 00f29c5

Please sign in to comment.