Share via

ONNX model input variables

Todd 1 Reputation point
2022-01-10T04:32:10.443+00:00

I've been tasked with writing a scoring consumer for any ONNX model that I'm given. When looking over the ONNX model format I do not see anywhere that defines the input variables in the model. For example, after creating a model with the iris dataset, I see the input is defined as a float array of 4 values but it does not specify which variable goes with which input value. Is there anywhere in the saved model that tells a consumer of the model which variable needs to be in which array index or does the producer of the model have to tell the consumers what order they need to be in?

Thanks.

Community Center | Not monitored
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.