Skip to content

[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Got invalid dimensions for input: pixel_values for the following indices #941

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

Open
amd-vivekag opened this issue Feb 14, 2025 · 0 comments

Comments

@amd-vivekag
Copy link

amd-vivekag commented Feb 14, 2025

Steps to reproduce:

python run.py -t <testname> -b llvm-cpu -d local-task -c x86_64-linux-gnu  --mode=cl-onnx-iree --cleanup=3 --get-metadata -v

Tests failing:

hf_mobilenet_v1_0.75_192

Should get following Error/Exception:

Failed test at stage native_inference with exception:
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Got invalid dimensions for input: pixel_values for the following indices
 index: 2 Got: 224 Expected: 192
 index: 3 Got: 224 Expected: 192
 Please fix either the inputs/outputs or the model.
Traceback (most recent call last):
  File "/home/vivekag/scratch/AIGShark/nodai/SharkTestSuite_vivekag/SHARK-TestSuite/alt_e2eshark/run.py", line 238, in run_tests
    golden_outputs_raw = inst.forward(inputs)
  File "/home/vivekag/scratch/AIGShark/nodai/SharkTestSuite_vivekag/SHARK-TestSuite/alt_e2eshark/e2e_testing/framework.py", line 76, in forward
    model_output = session.run(
  File "/home/vivekag/scratch/AIGShark/nodai/SharkTestSuite_nightly/nightly.env/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 266, in run
    return self._sess.run(output_names, input_feed, run_options)
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Got invalid dimensions for input: pixel_values for the following indices
 index: 2 Got: 224 Expected: 192
 index: 3 Got: 224 Expected: 192
 Please fix either the inputs/outputs or the model.

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

1 participant