Skip to content

Commit 7407cb0

Browse files
committed
Apply suggestions from code review
1 parent f42fb29 commit 7407cb0

File tree

1 file changed

+2
-2
lines changed
  • src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64

1 file changed

+2
-2
lines changed

src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/paged_attn.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,16 +244,16 @@ class PagedAttnTestBase : public testing::WithParamInterface<PagedAttnTestParams
244244
// Parameters order: q, k, v, atten_mask, scale, [sink], past_kv, beam_idx
245245
size_t atten_mask_idx = 3;
246246
size_t scale_idx = 4;
247-
size_t sink_idx = use_sink_input ? 5 : -1; // sink only exists when use_sink_input=true
248247

249248
std::shared_ptr<ov::op::v13::ScaledDotProductAttention> sdp;
250249
// For sliding window case, set causal=false because we provide explicit mask with sliding window logic
251250
// For normal case, set causal=true to let SDPA apply causal mask internally
252-
bool use_causal = (sliding_window == 0);
251+
bool use_causal = (this->sliding_window == 0);
253252

254253
if (use_sink_input) {
255254
// 7-parameter SDPA constructor with sink support
256255
// Parameters: query, key, value, attn_mask, scale, sink, causal
256+
size_t sink_idx = 5;
257257
sdp = std::make_shared<ov::op::v13::ScaledDotProductAttention>(q_in,
258258
k_in,
259259
v_in,

0 commit comments

Comments
 (0)