How can I load the weights of an LSTM module to an LSTMCell?
I tried :
self.lstm_cell.load_state_dict(self.lstm.state_dict)
but I get the following error:
self.lstm_cell.load_state_dict(self.lstm.state_dict)
  File "/home/luca/anaconda3/envs/rdkit_env/lib/python3.7/site-packages/torch/nn/modules/module.py", line 812, in load_state_dict
    state_dict = state_dict.copy()
AttributeError: 'function' object has no attribute 'copy'