flow-forecast icon indicating copy to clipboard operation
flow-forecast copied to clipboard

Fix torch.range warning in the DilateLoss

Open isaacmg opened this issue 4 years ago • 1 comments

There is a new warning about using torch.range with respect to the Dilateloss

isaacmg avatar Feb 21 '21 18:02 isaacmg

The fix for this pretty easy. Essentially just replace with torch.arrange() This function is deprecated and will be removed in a future release because its behavior is inconsistent with Python’s range builtin. Instead, use torch.arange(), which produces values in [start, end).

isaacmg avatar Feb 22 '21 16:02 isaacmg