alrevuelta / cONNXr

Pure C ONNX runtime with zero dependancies for embedded devices
MIT License
189 stars 31 forks source link

Dependancy not controlled: onnx.proto #62

Open alrevuelta opened 4 years ago

alrevuelta commented 4 years ago

The files onnx.pb-c.c and onnx.pb-c.h were generated from onnx file onnx.proto some time ago, but that file changes across different versions. It can be easily generated with:

protoc --c_out=. onnx.proto

onnx_generator should also take the latest available onnx.proto and regenerate onnx.pb-c.c and onnx.pb-c.h.

Then, if someone wants to target a particular onnx version or opset version, the correct onnx.proto should be provided. Not really sure about this though. Maybe its per se backwards compatible.