Loss_ToolBox-PyTorch icon indicating copy to clipboard operation
Loss_ToolBox-PyTorch copied to clipboard

Legacy autograd function with non-static forward method is deprecate

Open Abbas009 opened this issue 4 years ago • 0 comments

In running the Tversky loss following error Occurred. "Legacy autograd function with non-static forward method is deprecated. " RuntimeError: Legacy autograd function with non-static forward method is deprecated. Please use new-style autograd function with static forward method. (Example: https://pytorch.org/docs/stable/autograd.html#torch.autograd.Function) Pytorch==1.7.0

Abbas009 avatar Nov 16 '20 13:11 Abbas009