module=nn.ModuleList([nn.Linear(5, 10]) module.extend([nn.Linear(10, 5]) How to use TensorFlow2 to achieve the same effect?