Skip to content
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

Clean up lowering APIs #3690

Closed
wants to merge 1 commit into from
Closed

Clean up lowering APIs #3690

wants to merge 1 commit into from

Conversation

mcremon-meta
Copy link
Contributor

Summary: Changes some types in export_to_edge, add an export_to_cadence function, and refactor some calls. Mostly preemptive work before adding a lot of AoT passes.

Differential Revision: D57579738

Copy link

pytorch-bot bot commented May 21, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 453dd5e with merge base 705ac96 (image):
💚 Looks good so far! There are no failures yet. 💚

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 May 21, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57579738

expo_program, compile_config=EdgeCompileConfig(_check_ir_validity=False)
expo_program,
compile_config=EdgeCompileConfig(
_check_ir_validity=False, _skip_dim_order=True
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this added _skip_dim_order kwarg for?

inputs: Tuple[Any, ...],
dump_graphs: bool = False,
) -> EdgeProgramManager:
edge_program_manager = export_to_edge(model, inputs)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this just take in an EdgeProgramManager that separately had export_to_edge called so that the APIs can be combined?

to_edge_ops_count = get_ops_count(to_edge_gm)
jarvis_ops_count = get_ops_count(jarvis_gm)

# De-duplicate the "<op>" and "<op>_copy" ops
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove this part?

Summary:

Changes some types in `export_to_edge`, add an `export_to_cadence` function, and refactor some calls. Mostly preemptive work before adding a lot of AoT passes.

Reviewed By: dulinriley, zonglinpengmeta

Differential Revision: D57579738
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D57579738

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ed2da4f.

kirklandsign pushed a commit to kirklandsign/executorch that referenced this pull request May 24, 2024
Summary:
Pull Request resolved: pytorch#3690

Changes some types in `export_to_edge`, add an `export_to_cadence` function, and refactor some calls. Mostly preemptive work before adding a lot of AoT passes.

Reviewed By: dulinriley, zonglinpengmeta

Differential Revision: D57579738

fbshipit-source-id: 8c7975488636bd946894f7f7e62da7e76eb29c65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants