In your current code snippet the forward method only uses self.linear. Since none of the linear layers in self.modlst is used, they won’t receive and gradients and thus won’t be updated.
In case you are using these layers at a later stage, they should be updated as long as you don’t detach the computation graph etc.
PS: you can post code snippets by wrapping them into three backticks ```