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

assert input_shape[i] == 1 or type(input_shape[i]) != int # noqa: E721 AssertionError #18183

Closed
mahesh11T opened this issue Oct 31, 2023 · 4 comments
Labels
ep:TensorRT issues related to TensorRT execution provider platform:windows issues related to the Windows platform stale issues that have not been addressed in a while; categorized by a bot

Comments

@mahesh11T
Copy link

Describe the issue

https://onnxruntime.ai/docs/execution-providers/TensorRT-ExecutionProvider.html#usage

python symbolic_shape_infer.py --input /path/to/onnx/model/model.onnx --output /path/to/onnx/model/new_model.onnx --auto_merge

i get the error while running the above script.
assert input_shape[i] == 1 or type(input_shape[i]) != int # noqa: E721 AssertionError

image

To reproduce

na

Urgency

No response

Platform

Windows

OS Version

10

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.15

ONNX Runtime API

Python

Architecture

X64

Execution Provider

Other / Unknown

Execution Provider Library Version

11.7

@github-actions github-actions bot added ep:TensorRT issues related to TensorRT execution provider platform:windows issues related to the Windows platform labels Oct 31, 2023
@tianleiwu
Copy link
Contributor

@mahesh11T, could you add a line print(input_shape[i]) before line 1955 of shape_change.py to see what happens? Feel free to contribute a fix.

@mahesh11T
Copy link
Author

@mahesh11T, could you add a line print(input_shape[i]) before line 1955 of shape_change.py to see what happens? Feel free to contribute a fix.

image
image

Copy link
Contributor

This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Nov 30, 2023
Copy link
Contributor

This issue has been automatically closed due to inactivity. Please reactivate if further support is needed.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:TensorRT issues related to TensorRT execution provider platform:windows issues related to the Windows platform stale issues that have not been addressed in a while; categorized by a bot
Projects
None yet
Development

No branches or pull requests

2 participants