I am trying to script some PyTorch code that utilizes ModuleList. The code makes use of subscripting of a ModuleList object as follows:
I am met with the following error:
‘module’ object is not subscriptable:
for i in range(self.n_layers):
acts = fused_add_tanh_sigmoid_multiply(
~~~~~~~~~~~~~~~~ <— HERE
Any help would be greatly appreciated.