Skip to content

Conversation

@Erik-Lundell
Copy link
Collaborator

There are cases where the names of the inputs
in the edge-IR graph do not match the names of the inputs in the export-IR. Since desc.json used the names from export-IR while TOSA used the names from edge-IR there was a mismatch.

I therefore changed desc.json to use the names from edge-IR if possible. I also changed the search of tosa.fbs to be cwd independent, and added a check to avoid a crash if you .dump_artifact() on a graph with no delegate.

Change-Id: Iffa56e2f43910adc74608b96518717d14e0beb53

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 4, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5071

Note: Links to docs will display an error until the docs builds have been completed.

❌ 5 New Failures

As of commit 00bbb78 with merge base d516309 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 4, 2024
@Erik-Lundell Erik-Lundell added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk labels Sep 4, 2024
f.write(tosa_fb)

tosa_schema_file = "./backends/arm/third-party/serialization_lib/schema/tosa.fbs"
arm_backend_path = os.path.realpath(os.path.dirname(__file__) + "/..")
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok but unrelated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it's unrelated, I should probably have added several commits to the the PR for clarity

@facebook-github-bot
Copy link
Contributor

@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@digantdesai
Copy link
Contributor

Apologies for the delay, can you please rebase this on main? Thanks.

There are cases where the names of the inputs
in the edge-IR graph do not match the names of the inputs
in the export-IR. Since desc.json used the names from export-IR
while TOSA used the names from edge-IR there was a mismatch.
I therefore  changed desc.json to use the names from edge-IR if possible.

I also changed the search of tosa.fbs to be cwd independent.

Signed-off-by: Erik Lundell <erik.lundell@arm.com>
Change-Id: Iffa56e2f43910adc74608b96518717d14e0beb53
@Erik-Lundell
Copy link
Collaborator Author

Apologies for the delay, can you please rebase this on main? Thanks.

Delay from my side as well, but rebased now.

@facebook-github-bot
Copy link
Contributor

@digantdesai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@digantdesai merged this pull request in 4bf7e2f.

@Erik-Lundell Erik-Lundell deleted the input-name-bugfix branch July 31, 2025 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants