- Use vcpkg to install protobuf lib
vcpkg install protobuf protobuf:x64-windows-static
- Clone onnx from git repo: https://github.com/onnx/onnx
- Use protobuf to generate onnx.proto3.pb.xx
C:\vcpkg\packages\protobuf_x64-windows\tools\protobuf\protoc.exe --cpp_out=. onnx.proto3
reference: https://tadaoyamaoka.hatenablog.com/entry/2021/08/18/001934
Parsing .onnx file and getting the network graph