Caffe2 support (python)

I have a (quite old) application that was built with Caffe2 prior to it’s merger into Pytorch.

As per the guide on caffe2.ai, it seems to suggest that caffe2 libraries have been integrated to Pytorch.

I installed pytorch through conda.
But still I can’t import the libraries to import caffe2 prebuilt modes (in protobuf format).

Specific error:

from caffe2.python import core, workspace, visualize, model_helper

ModuleNotFoundError: No module named ‘caffe2’

(code is based of Loading Pre-Trained Models guide)

Q: What is the right way to run caffe2 applications?

I found the PR where this was done: Remove Caffe2 python code by cyyever · Pull Request #126035 · pytorch/pytorch · GitHub.

Seems like a breaking change that invalidates most of the documentation on caffe2.ai that’s still out there.