Skip to content

Commit

Permalink
Removed dead code
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 731443798
  • Loading branch information
talumbau authored and copybara-github committed Feb 26, 2025
1 parent f114cce commit 6d58005
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ai_edge_torch/generative/layers/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ def forward(

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

Expand Down

0 comments on commit 6d58005

Please sign in to comment.