Section Navigation
Rotate adjacent feature pairs from (a, b) to (-b, a).
(a, b)
(-b, a)
x (Tensor) – Tensor of shape (..., features) with an even final dimension.
Tensor
(..., features)
Same shape, device and dtype as x. Frequencies, positional indexing and mixed-precision policy are left to the caller.
x
rotate_pairs()