code: def reset(self):
          "Reset the internal memory."
          self.hidden = [next(self.parameters()).data.new(0) for i in range(self.n_layers+1)f reset(self):
          "Reset the internal memory."
          self.hidden = [next(self.parameters()).data.new(0) for i in range(self.n_layers+1)]
docs: Reset the internal memory.