Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of batch inferenece #1944

Closed
abduld opened this issue Sep 27, 2019 · 2 comments
Closed

Example of batch inferenece #1944

abduld opened this issue Sep 27, 2019 · 2 comments

Comments

@abduld
Copy link

abduld commented Sep 27, 2019

I am trying to find an example of performing batched inference. Currenyly, I am trying shufflenet (in the onnx model zoo), but I get the following

2019-09-27 11:12:07.268257103 [W:onnxruntime:Default, inference_session.cc:595 CheckShapes] Got invalid dimensions for input: gpu_0/data_0 for the following indices
 index: 0 Got: 2 Expected: 1
 Please fix either the inputs or the model.
  • ONNX Runtime version (you are using): 0.5

Any help is greattly appreciated

@snnn
Copy link
Member

snnn commented Sep 27, 2019

The model doesn't support batch inference. Please try another model. You may pick one from:https://github.com/mlperf/inference/tree/master/v0.5/classification_and_detection

@hariharans29
Copy link
Member

Hi @abduld ,

Expanding on the answer, if you open-up the model using Netron (or any other tool) and examine the graph inputs, usually a model that natively supports "batching" has symbolic dimensions in the graph input shape descriptions. For example, like this -

image

A model that doesn't usually has the input shape fixed like [1, 224, 224, 3].

Closing this issue as this is not an issue for ORT.

Pleas re-open for further clarifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants