Skip to content

Conversation

@hsharma35
Copy link
Contributor

Summary:
Refactor our memory planning algos into a MemoryPlanningAlgo base class + algo-specific implementation in derived class. This refactor separates common utility functions + constraint handling to the base class.

This way, we can add support for hierarchical graphs (using maps), and add more types of constraints (like pinning a tensor to specific dtcm bank) without changing the algo itself.

Differential Revision: D76954785

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 20, 2025

🔗 Helpful Links

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

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

❌ 2 New Failures, 4 Pending

As of commit c610a30 with merge base da36d8a (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 Jun 20, 2025
@facebook-github-bot
Copy link
Contributor

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

hsharma35 added a commit to hsharma35/executorch that referenced this pull request Jun 23, 2025
Summary:

Refactor our memory planning algos into a `MemoryPlanningAlgo` base class + algo-specific implementation in derived class. This refactor separates common utility functions + constraint handling to the base class.

This way, we can add support for hierarchical graphs (using maps), and add more types of constraints (like pinning a tensor to specific dtcm bank) without changing the algo itself.

Reviewed By: zonglinpeng

Differential Revision: D76954785
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Jun 23, 2025
Summary:
Pull Request resolved: pytorch#11824

Refactor our memory planning algos into a `MemoryPlanningAlgo` base class + algo-specific implementation in derived class. This refactor separates common utility functions + constraint handling to the base class.

This way, we can add support for hierarchical graphs (using maps), and add more types of constraints (like pinning a tensor to specific dtcm bank) without changing the algo itself.

Reviewed By: zonglinpeng

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

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

hsharma35 added a commit to hsharma35/executorch that referenced this pull request Jun 23, 2025
Summary:

Refactor our memory planning algos into a `MemoryPlanningAlgo` base class + algo-specific implementation in derived class. This refactor separates common utility functions + constraint handling to the base class.

This way, we can add support for hierarchical graphs (using maps), and add more types of constraints (like pinning a tensor to specific dtcm bank) without changing the algo itself.

Reviewed By: zonglinpeng

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

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

Summary:

Refactor our memory planning algos into a `MemoryPlanningAlgo` base class + algo-specific implementation in derived class. This refactor separates common utility functions + constraint handling to the base class.

This way, we can add support for hierarchical graphs (using maps), and add more types of constraints (like pinning a tensor to specific dtcm bank) without changing the algo itself.

Reviewed By: zonglinpeng

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

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

@hsharma35 hsharma35 added topic: not user facing release notes: none Do not include this in the release notes labels Jun 23, 2025
@facebook-github-bot facebook-github-bot merged commit be07160 into pytorch:main Jun 23, 2025
96 of 100 checks passed
hinriksnaer pushed a commit to hinriksnaer/executorch that referenced this pull request Jun 26, 2025
Differential Revision: D76954785

Pull Request resolved: pytorch#11824
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 release notes: none Do not include this in the release notes topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants