This is what I was suggesting in code.  But you’d have to make sure task_names are not the same so they don’t overwrite each other.
...
    feedfnn.append((task_name, ffnn))
self.ffnn = nn.Module()
for k, v in feedfnn:
    self.ffnn.add_module(k, v)