torch.floor_divide has been deprecated in PyTorch 1.9 and it results in the following warning:
torchani/aev.py:236: UserWarning: __floordiv__ is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor').
pair_sizes = counts * (counts - 1) // 2
torch.floor_divide
has been deprecated in PyTorch 1.9 and it results in the following warning: