So you have 256 points in 2d?
import math
x = torch.rand(256, 2)
phi = torch.tensor(5 * math.pi / 180)
s = torch.sin(phi)
c = torch.cos(phi)
rot = torch.stack([torch.stack([c, -s]),
                   torch.stack([s, c])])

x_rot = x @ rot.t()   # same as x_rot = (rot @ x.t()).t() due to rot in O(n) (SO(n) even)

or somesuch.
Best regards
Thomas