Solved by pytorch-newbie in post #7 
              
              
                Thank you very much!! I have tried datach before but forget to assign it to itself( >____< ). This is my final code which can work. 
        for t in range(self._opt.temperature):
            syn_energy = self._Des128(sample_seq)  # deep network
            syn_energy.sum().backward()  # backward th…