Skip to content

memory_planning algos take the specs as inputs instead of calculating them themselves #9952

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

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

JacobSzwejbka
Copy link
Contributor

@JacobSzwejbka JacobSzwejbka commented Apr 7, 2025

Summary:
Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

Differential Revision: D72600295

cc @angelayi

Copy link

pytorch-bot bot commented Apr 7, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 7a8e8bf with merge base a1af1ff (image):

NEW FAILURE - The following job has failed:

  • pull / unittest-arm / linux-job (gh)
    RuntimeError: Command docker exec -t 4d01226cfdaf12be92342523b286a516aaddb06fe2b881b46233b4c73aac9197 /exec failed with exit code 1

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 Apr 7, 2025
@facebook-github-bot
Copy link
Contributor

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

JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Apr 8, 2025
… them themselves (pytorch#9952)

Summary:

Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

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

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

@JacobSzwejbka JacobSzwejbka added release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.) module: exir Issues related to Export IR and the code under exir/ labels Apr 8, 2025
JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Apr 9, 2025
… them themselves (pytorch#9952)

Summary:

Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

Reviewed By: skrtskrtfb

Differential Revision: D72600295
@JacobSzwejbka JacobSzwejbka requested a review from SS-JIA as a code owner April 9, 2025 17:25
@facebook-github-bot
Copy link
Contributor

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

JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Apr 9, 2025
… them themselves (pytorch#9952)

Summary:

Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

Reviewed By: skrtskrtfb

Differential Revision: D72600295
JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Apr 9, 2025
… them themselves (pytorch#9952)

Summary:

Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

Reviewed By: skrtskrtfb

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

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Apr 9, 2025
… them themselves (pytorch#9952)

Summary:
Pull Request resolved: pytorch#9952

Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

Reviewed By: skrtskrtfb

Differential Revision: D72600295
JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Apr 9, 2025
… them themselves (pytorch#9952)

Summary:

Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

Reviewed By: skrtskrtfb

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

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

JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Apr 9, 2025
… them themselves (pytorch#9952)

Summary:
Pull Request resolved: pytorch#9952

Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

Reviewed By: skrtskrtfb

Differential Revision: D72600295
JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Apr 9, 2025
… them themselves (pytorch#9952)

Summary:

Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

Reviewed By: tarun292, skrtskrtfb

Differential Revision: D72600295
JacobSzwejbka added a commit to JacobSzwejbka/executorch-1 that referenced this pull request Apr 9, 2025
… them themselves (pytorch#9952)

Summary:

Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

Reviewed By: tarun292, skrtskrtfb

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

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

… them themselves (pytorch#9952)

Summary:
Pull Request resolved: pytorch#9952

Refactor the algos to not calculate the active set of nodes themselves. Future work should refactor apply_algo more to not be recursive and actually smartly handle lifespans on control flow.

Made the memory planning suite a class so that the algo list is easily configureable without having to make a wrapper function.

Reviewed By: tarun292, skrtskrtfb

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

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

@facebook-github-bot facebook-github-bot merged commit 009efdc into pytorch:main Apr 10, 2025
81 of 84 checks passed
kirklandsign pushed a commit that referenced this pull request Apr 11, 2025
… them themselves

Differential Revision: D72600295

Pull Request resolved: #9952
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 module: exir Issues related to Export IR and the code under exir/ release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants