-
Notifications
You must be signed in to change notification settings - Fork 742
Update aot_arm_compiler.py #10750
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
Update aot_arm_compiler.py #10750
Conversation
Fixes: TypeError: Module.eval() missing 1 required positional argument: 'self'
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10750
Note: Links to docs will display an error until the docs builds have been completed. ❌ 5 New FailuresAs of commit 6edf988 with merge base cebe051 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
To add the ciflow label This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
|
Hi thanks for your PR, this highlight a "bad" thing in our current setup and help texts, as we just used this method to test model internally I see we lack some sort of documentation/description on how file should look like. Down the line I was hoping to move out the small models in the aot compiler to small model file snipets like yours as a better example then how it works today when they are baked into it. The idea was to set/use ModelUnderTest and ModelInputs as pre defined varable in the pyton file If that is OK for you then the PR should not be needed :) But if you would like to submit a model like this as a new example maybe with a short text in the readm on how to run it we would appreciate it, if not we will hopefully (soon:ish) do it anyway down the line. We are also open to other maybe better ways to handle this if you have any input that would be really nice, I feel that the ModelUnderTest and ModelInputs is a bit of a hack, kind of OK and solves the problem but maybe we could do it better :) It would be really cool if for some huggingface or torchaudion/video models you could just sue them and don't need to patch the files, but lets see what we manage to do :) |
Thanks for the explanation :) Now it is clear how this should work. I will submit another PR with the example model in the example/models directory, so it will be clearer for others.
I actually find that the hack works nicely, it is easy enough to test new custom models with this backend. I would only suggest a bit more documentation, but It guess it will come with time and project maturation :) |
Found an error when trying to use the aot_arm_compiler.py with a custom model defined in an external python file:
Error message: TypeError: Module.eval() missing 1 required positional argument: 'self'
This patch fixes the problem.
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218