)
model.convs.append(conv)
// Add the module so its managed correctly
model.add_module("conv-%d" % i, conv)
// Width of concat of parallel convs
input_dim = cmotsz * len(filtsz)
model.fconns = nn.Sequential()
After Change
)
convs.append(conv)
// Add the module so its managed correctly
model.convs = nn.ModuleList(convs)
// Width of concat of parallel convs
input_dim = cmotsz * len(filtsz)
model.fconns = nn.Sequential()