I have been follow pix2pixHD pytorch code 6 for a while now.
I’m not quite sure why they use:
model.module.optimizer_G.zero_grad()  instead of model.optimizer_G.zero_grad() link here 5
model.module.optimizer_D.zero_grad()  instead of model.optimizer_D.zero_grad() link here 1
I couldn’t find module anywhere in there repo. Is it a pytorch thing?