I want extract the transformer intermediate layer. I use follow code, but it does not work. nn.Sequential(*list(model.children()), how should i do?