Hi guys, I’m trying to build libtorch<=1.2.0a0, the version requirement is due to the torch::jit::load that has to return the shared_ptr<Model> instead of just the Model.
However I’m not able to build it due to the following error:
/tmp/pytorch/third_party/foxi/foxi/onnxifi_dummy.c:99:60: error: conflicting types for 'onnxInitGraph'
   99 | ONNXIFI_PUBLIC ONNXIFI_CHECK_RESULT onnxStatus ONNXIFI_ABI onnxInitGraph(

I’m building with the following command:
cmake .. -DUSE_CUDA=OFF -DBUILD_TEST=OFF -DPYTHON_EXECUTABLE=$(which python2) -DBUILD_PYTHON=OFF -DBUILD_SHARED_LIBS=ON
make -j8

I tried the following version: 1.2.0a0, 1.2.0, 1.1.0, 1.0.1, 1.0.0.
At the end of the day I would like to have libtorch.so libc10.so libtorch_cpu.so. Any help?