Debug crashed when creating a list of Variable.cuda

Hi guys, I’m trying to debug my code which contains such assignments:

    weights = list(model.parameters())
    sigma_sum = [Variable(torch.zeros(weights[i].size())).cuda() for i in range(len(weights))]

The code can be executed normally when I ran the program, but in my debug mode, it just stucked for a long time then shown “Unable to display frame variables”. See the screenprint follows:

I ran my code on PyCharm, Ubuntu 14.04, Pytorch 0.2.0, with two 1080Ti.
What’s the problem with it? Thanks in advance.