I saw some remove the VGG model gradient when they train style transfer or perceptual loss in this way.
**for** param **in** vgg.parameters():
param.requires_grad_( **False** )

Isn’t necessary to compute the gradient since we are back propagating the VGG to the generated model ?