Thanks for your reply.
But I want to instantiate the subnet in the main net init function, I can’t get the subnet object directly.
Do you mean that I should solve this problem like this:
parameters = chain(mainnet.parameters(), mainnet.subnet.parameters()) ???