Improve clarity for flattened graph inputs
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5k
- Forks
- 1.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 581
Description
🚀 The feature, motivation and pitch
When passing complex model inputs, such as (nested) dictionaries, it can be a little unclear on the order of flattened inputs. This can be resolved by looking at the exported IR or program dump, but these aren't easy to parse without detailed knowledge of export/ET internals.
If such a thing doesn't already exist, it would be nice to provide a way for users to easily see what the expected input format is. Maybe printing the exported function signature? This could maybe be incorporated into the higher-level export API. Or as a verbose logging option when lowering? Implementation needs thinking through. Ideally, it would be easy for a user to understand what order to pass inputs at runtime without needing to dig into verbose, low-level info.
Alternatives
No response
Additional context
No response
RFC (Optional)
No response
cc @JacobSzwejbka @angelayi @mergennachin @byjlw
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the higher-level export API and the existing exported IR or program dump behavior mentioned in the issue, then examine how lowering exposes verbose information. Done means users can determine the runtime order for flattened complex inputs without needing detailed export or ExecuTorch internals.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, machine-learning
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100