If param_to_update is not part of the netG.parameters(), you could pass it additionally to the optimizer as:
self.optimizer_G = torch.optim.Adam(list(self.netG.parameters()) + [param_to_update], lr=opt.lr, betas=(opt.beta1, 0.999))