Skip to content

fix(test): change AIModel asset saving to give temp path to AIModel instead of directory#37

Merged
guru-desh merged 2 commits into
apple:mainfrom
guru-desh:fix-ane-fd-bug
Jul 17, 2026
Merged

fix(test): change AIModel asset saving to give temp path to AIModel instead of directory#37
guru-desh merged 2 commits into
apple:mainfrom
guru-desh:fix-ane-fd-bug

Conversation

@guru-desh

@guru-desh guru-desh commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Verified by running the following commands:
1.make test PYTEST_ARGS="tests/export --workers 8 --compute-unit-kind=neural_engine --runxfail --max-worker-restart=500"
2. make test PYTEST_ARGS="tests/export --workers 1 --compute-unit-kind=neural_engine --runxfail --max-worker-restart=500"

Neither of these gave the OSError: [Errno 9] Bad file descriptor issue

This matches up with coreai-torch documentation where they save to .aimodel directly

@guru-desh
guru-desh requested a review from yixingli-apple July 14, 2026 05:16
@guru-desh guru-desh added the bug Something isn't working label Jul 14, 2026
@guru-desh
guru-desh marked this pull request as ready for review July 14, 2026 05:53
@guru-desh
guru-desh merged commit 3e01e4a into apple:main Jul 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants