How a C++ program call a network written in PyTorch

I want to implement a framework like AlphaGo Zero. My MCTS needs to get values from the network very frequently and quickly. So is there a good communication mechanism could do this? I hear that I could convert the PyTorch into Caffe to use its C++ API, but is there another way?