Skip to content

Commit 949c0de

Browse files
authored
[webgpu] Fix graph capture broken (microsoft#26383)
microsoft#26297 deleted `seqlen_k` by accident which broke the graph capture in phi4. This PR brings it back.
1 parent c7dfc25 commit 949c0de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/contrib_ops/webgpu/bert/group_query_attention.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ Status GroupQueryAttention::ComputeInternal(onnxruntime::webgpu::ComputeContext&
287287
!use_sliding_window &&
288288
CanApplyFlashAttention(attention_bias, present_key, present_value, parameters, context)) {
289289
return ApplyFlashAttention(query, key, value, attention_bias, output, past_key, present_key, past_value,
290-
present_value, parameters, context);
290+
present_value, parameters, context, seqlen_k);
291291
}
292292

293293
TensorShapeVector q_new_dims({parameters.batch_size_, parameters.num_heads_,

0 commit comments

Comments
 (0)