model explorer example with more than single inputs. #17357
Unanswered
artificalaudio
asked this question in
Other Q&A
Replies: 1 comment 1 reply
-
The model having a symbolic dimension for an input means any value can be provided. When you create the input, the shape for the input must have values that match the actual data sizes. i.e. all values in the shapes for the input data must be 1 or higher. This example shows creating inputs and calling Ort::Session::Run. Whilst the code only creates one input, it's written in a generic way where more inputs could be added to the vectors without needing to change the call to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've just built the Onnx runtime and been trying to get to know the API, and how to use ORT in a C++ app.
I have got the model explorer example working, and works as expected with models with a single input and output.
I've disabled the check/assertion about model must have only one input/output, and I am trying to figure out how to enable setting of multiple inputs.
I have been able to print the architecture of the input and output as such:
How would I pass through a dummy input for a model with multiple inputs. I'm also not sure about the -1, the dynamic axes, should I give them a fixed amount/size? I'm a tad confused here.
If anyone could clear up how you'd pass through dummy inputs to a multiple input kind of model I would very much appreciate the help.
I'm using this code, which is identical to the model explorer code:
Beta Was this translation helpful? Give feedback.
All reactions