Replies: 2 comments 2 replies
-
Tagging @pranavsharma / @natke to help link any docs on this subject here. By dynamic shaped outputs, do you know the shape of the outputs apriori or do you not know it? ORT should be able to handle both scenarios. This C++ shared lib test is what you will need, and it has sample code for both cases (where shape is known apriori and when shape is not known apriori)- .Regarding multiplicity of the outputs, you would just use as many |
Beta Was this translation helpful? Give feedback.
-
I realized that I had been overlooking something in the API that seems to be the answer - I'm assuming that |
Beta Was this translation helpful? Give feedback.
-
We want to run inference with multiple dynamically-shaped outputs using the C++ api with
IOBinding
, but the documentation is not clear on how to retrieve the outputs. If we've bound multiple dynamically shaped outputs using the BindOutput with MemoryInfo signature onIOBinding
, how will the outputs be ordered when we retrieve them usingIOBinding.GetOutputValues()
?As a concrete example, take this snippet from the repo (snippet link):
In this situation, we are binding one output and it is retrieved using
GetOutputValues()
, which returns avector<Ort::Value>
with a single element.My question is, what if we were to bind multiple outputs? How would the results be ordered in the return value of
GetOutputValue()
? For example:Beta Was this translation helpful? Give feedback.
All reactions