Skip to content

Conversation

@tkocmathla
Copy link
Contributor

@tkocmathla tkocmathla commented Nov 12, 2025

Fixes #4210.

Fix data_dir assignment and add tests for 2 new cases:

  1. When --temp-dir is set and --data-dir is not and path-based shape inference is used
  2. When raw_model_modified and model uses external data

@sjarus sjarus requested a review from zjgarvey December 9, 2025 17:47
Copy link
Collaborator

@zjgarvey zjgarvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for finding this. It does seem strange that we would be checking for an explicit args.temp_dir for the external data.

I have a few comments. Most importantly, I think we should find a way to test without needing to generate a 2GB random tensor.

@tkocmathla tkocmathla requested a review from zjgarvey December 15, 2025 15:14
Fix data_dir assignment and add tests for 2 new cases:
  1. When `--temp-dir` is set and `--data-dir` is not
  2. When `raw_model_modified` and model uses external data
@tkocmathla
Copy link
Contributor Author

@zjgarvey would you mind kicking the CI and doing another review? 🙏🏻

Copy link
Collaborator

@zjgarvey zjgarvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zjgarvey zjgarvey merged commit 7755008 into llvm:main Dec 21, 2025
3 checks passed
@tkocmathla tkocmathla deleted the matt/issue-4210 branch December 22, 2025 09:54
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

Successfully merging this pull request may close these issues.

ONNX importer fails when --temp-dir is set and --data-dir is not

2 participants