While accessing individual layers using ._modules() in ResNet50: forward() function, the terminal quits on it's own, with an output: '^C'

Thank you the problem was solved. You were right, I needed to detach the intermediate tensors. I used the Variable wrapping with l4 and x. Thanks for the help

1 Like