Skip to content

rectify input dtype in fix_dynamic_axes #1083

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sunhs
Copy link

@sunhs sunhs commented Jun 6, 2023

What does this PR do?

Fixes #994

Compare the input dtype between the onnx graph and the generated dummy input, and do necessary casting if they don't match.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@fxmarty
Copy link
Contributor

fxmarty commented Jun 14, 2023

I couldn't reproduce the issue in #994. If there's an unnecessary Cast introduced in the graph, maybe we should change the input generator itself.

@sunhs
Copy link
Author

sunhs commented Jun 14, 2023

Yes, changing the input generator should work. But not sure if it would break other things.

Copy link

This PR has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

@github-actions github-actions bot added the Stale label May 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ORTStableDiffusionPipeline: INVALID_ARGUMENT : Unexpected input data type. Actual: (tensor(int64)) , expected: (tensor(int32))
2 participants