Hi,
I think this means that the pow function does not support raising integer values to negative integer powers?
In particular, taking the inverse of an integer is not well defined because you don’t get an integer back.
I think you wnat to change your input to be floating point numbers for this to work fine: deg.float().pow(-1) (and the result will be a floating point number as well).