github.com
  
  
    pytorch/pytorch/blob/master/torch/nn/modules/rnn.py#L117-L120 10

        orig_param.set_(new_param.view_as(orig_param))


self._data_ptrs = list(p.data.data_ptr() for p in self.parameters())