Section Navigation
Inverse frequencies of a rotary embedding, 1 / base ** (2 i / head_dim).
1 / base ** (2 i / head_dim)
head_dim (int) – Even feature dimension that is rotated.
int
base (float) – Base period (theta).
float
theta
device (Optional[device])
Optional
device
dtype (dtype) – Precision of the table; the angles inherit it.
dtype
Shape (head_dim // 2,).
(head_dim // 2,)
Tensor
rotary_frequencies()