How to get middle layer output from torch::nn::sequentia

Hello.I use libtorch all the time,now,vgg16,how to get middle MaxPool2d output?