I am trying run old code written in PyTorch 0.3 in PyTorch 1.x. Parameter mismatch error occurred.
Traceback (most recent call last):
File "main_LM.py", line 113, in <module>
args.tied, args.hard, args.res)
File "/content/PRPN/model_PRPN.py", line 31, in __init__
self.reader = nn.ModuleList([ReadingNetwork(ninp, nhid, nslots, dropout=dropout, idropout=idropout), ] +
File "/content/PRPN/ReadingNetwork.py", line 19, in __init__
self.memory_rnn = LSTMCell(ninp, nout)
File "/content/PRPN/LSTMCell.py", line 23, in __init__
super(LSTMCell, self).__init__()
TypeError: __init__() missing 4 required positional arguments: 'input_size', 'hidden_size', 'bias', and 'num_chunks'
I checked original PyTorch 0.3 source code. There was no num_chunks parameter in RNNCellBase class. So what does this newly add parameter do?