I implemented a subclass of torch.autograd.Function class and its forward and backward function. I use Pycharm IDE. I add a breakpoint in backward function and wanted to debug the script , then I found the program did not stop at the breakpoint . I do not know why. It works well in other part of the script,even in forward function.
I thought it is the pycharm’s problem ,but when I run the script in another computer with pycharm ,the problem disappear . I mean it stop just the breakpoint.
The problem drives me mad. so if anyone how to solve the problem ,please help me.