Closed RMeli closed 2 years ago
Fix #614 by using torch.div instead of //. This change is backward-compatible up to PyTorch 1.8, where the rounding_mode argument was introduced.
torch.div
//
rounding_mode
rounding_mode='trunc' preserves the original behavior of //.
rounding_mode='trunc'
Fix #614 by using
torch.div
instead of//
. This change is backward-compatible up to PyTorch 1.8, where therounding_mode
argument was introduced.rounding_mode='trunc'
preserves the original behavior of//
.