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