The warning is triggered by a division with could have been executed via torch.div or the div operator (a/b), so you could check the code for the usage of those.
You could also try to convert warnings to errors via:
import warnings
warnings.filterwarnings("error")

to hopefully get a better stacktrace.