In the simple program below step-by-step debugging gets progressively slower (and pretty much unusable) at each iteration, as more data is instantiated.
It seems the problem is caused by the variables pane trying to collect data about the instantiated objects. If I replace torch with numpy the very same program doesn't slow down at all, which makes me think there must be something in torch tensor obejcts that the debugger doesn't really like.
I also submitted this problem to the PyTorch forum but no one was able to help me yet (https://discuss.pytorch.org/t/pytorch-tensors-make-pycharm-step-by-step-debugging-unbearably-slow/8307).
I reproed the issue on Ubuntu 16.04 and on Windows 10 too, with Python 2.7, 3.5 and 3.6.
I have a profile log of the issue. Is there a way to share it privately?