Using Caffe2 C++ framework in 2019

Quite likely, you are on your own there:

Libtorch is rapidly approaching feature parity with PyTorch for the “beyond Tensor and Autograd bits”, too.

Best regards

Thomas