Search code examples
neural-networkonnx

How to create a ONNX File?


How to create an ONNX file manually? I mean without using the frameworks like PyTorch, caffe2, e.t.c, can we(binary encode maybe) create an onnx file, if we know the network details in prior like # of nodes, types of nodes, their connections, e.t.c?


Solution

  • Found it!! We can use onnx.helper class inside onnx library to create a model and save it in onnx format.