Pytorch backward graph error

Based on the linked repository it seems you are working on a GAN-like model, so you might hit this error.