In your case, the simplest would be to use nn.Sequential():
net = nn.Sequential(feature_net, rpn_net)
optimizer = optim.SGD(net.parameters(), lr=0.01, ...)

Then in your loop, for the forward pass, just do:
# forward
rpn_s,rpn_db = net(x)