I am trying to combine two ParameterLists in Pytorch. I’ve implemented the following snippet:
import torch

list = nn.ParameterList()
for i in sub_list_1:
    list.append(i)
for i in sub_list_2:
    list.append(i)

Is there any functions that takes care of this without a need to loop over each list?