Skip to content

Commit 6d58005

Browse files
talumbaucopybara-github
authored andcommitted
Removed dead code
PiperOrigin-RevId: 731443798
1 parent f114cce commit 6d58005

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ai_edge_torch/generative/layers/attention.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ def forward(
365365

366366
if rope is not None:
367367
# Compute rotary positional embedding for query and key.
368-
n_elem = int(self.config.rotary_percentage * self.config.head_dim)
369368
cos, sin = rope
370369
q, k = rotary_pos_emb.apply_rope_inline(q, k, cos, sin)
371370

0 commit comments

Comments
 (0)