View source on GitHub

Applies a Givens rotation on tensor x.

Reference on Givens rotations:

cosa the cosine of the angle.
sina the sine of the angle.
axis_i the first axis of rotation.
axis_j the second axis of rotation.
input_x the input tensor.

The rotated tensor (same shape as x).