Quite likely, you are on your own there:

  
    
    
    Caffe2 vs libtorch, realistically C++
  
  
    the caffe2 bits have no public support, and will be changed and deprecated at will. 
libtorch will be maintained, supported and improved, but at this point it wont have feature parity with caffe2 as a goal.
  


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