yes, in despair i turned to implementing it myself. still i run into the same error, maybe you can check out my code and see if something pops to your eye?
it’s basically a function that takes the pair from iterable of torch.nonzero(as_tuple=False) and returns a tilted pair:
from math import atan2, cos, sin ,radians
import numpy as np
def tilt(pair,deg):
    deg = radians(deg)
    x = (pair[1]-48)/48
    y = (pair[0]-48)/48
    angle = atan2(y,x) - deg
    size = np.sqrt( x ** 2 + y ** 2 )
    temp = size * cos(angle)
    x = temp if ((temp > -1) & (temp < 1)) else x
    temp = size * sin(angle)
    y = temp if ((temp > -1) & (temp < 1)) else y
    x = int((x * 48 + 48).round())
    y = int((y * 48 + 48).round())
    return (y,x)

generally, i’m sure this issue will repeat itself and should be addressed