dannyneil / pytorch_plstm

MIT License
21 stars 3 forks source link

fix incorrect rounding for negative values #5

Open birkandenizer opened 1 year ago

birkandenizer commented 1 year ago

In PyTorch 1.12 and earlier, floor_divide rounds toward 0. This uses actual floor division to prevent such behaviour.