Oh and I had the same issue before but it was when I was using Discriminator.backward(), I could solve it by changing some lines in my code, I was using the following structure:
        h = self.conv1(self.activation(self.bn1(z,y)))   

I separated the code  in different lines and the error message dissappeared but I raised the current one.