[ROCm] [Critical]: Remove unused variable (#31156)

Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
This commit is contained in:
TJian 2025-12-23 01:28:22 +09:00 committed by GitHub
parent a5bc77c253
commit 022f3cea53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -405,7 +405,6 @@ void fused_qk_norm_rope(
qkv.scalar_type() == k_weight.scalar_type(),
"qkv, q_weight and k_weight must have the same dtype");
int64_t rotary_dim = cos_sin_cache.size(1);
int64_t num_tokens = qkv.size(0);
TORCH_CHECK(position_ids.size(0) == num_tokens,
"Number of tokens in position_ids must match QKV");