We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9c71c commit 21ef3d0Copy full SHA for 21ef3d0
examples/qualcomm/oss_scripts/llama/runner/runner.cpp
@@ -152,8 +152,10 @@ Error Runner::load() {
152
153
// Use attention mask length to retrieve AR length and context length
154
// Cache len equals to context_len - ar_len
155
- int32_t prompt_processor_ar_len, token_generator_ar_len, max_cache_len,
156
- max_ar_len;
+ int32_t prompt_processor_ar_len = 0;
+ int32_t token_generator_ar_len = 0;
157
+ int32_t max_cache_len = 0;
158
+ int32_t max_ar_len = 0;
159
// atten mask: [1, AR-N, CL]
160
auto atten_mask_meta_token = method_meta->input_tensor_meta(1);
161
token_generator_ar_len = atten_mask_meta_token->sizes()[1];
0 commit comments