How to add other modules to the pre-trained network, such as attention module, spp module, etc And use pre-trained model weights for training

How to add various attention modules in the paper, or how to modify the pre-training model .thanks for help me!!