I would also like to know how to do this. I’m experiencing similar problems. Currently available documentations are all out of date and it’s quite frustrating to have to go through a myriad of source files to figure out how things are implemented.
But even before OP’s step, I’m having trouble loading an ONNX model in C++ using caffe2. I tried CAFFE_ENFORCE(ReadProtoFromFile(path, &init_net)); which throws an error…
Any help would be highly appreciated!