apply_rope_1d_bhl#
- apply_rope_1d_bhl(x, rope_1d_cache)#
Apply 1D RoPE to a tensor laid out as [batch_size, hidden_dim, seq_len].
- Parameters:
- Returns:
Tensor with the same shape as
x.- Return type:
- Broadcasting:
cos/sin are reshaped to
[1, hidden_dim, seq_len].