Skip to content

Resolve Operator fallback to method allocator if temp alloc fails (#20981)#20981

Open
rstehle wants to merge 2 commits into
pytorch:mainfrom
rstehle:export-D109855815
Open

Resolve Operator fallback to method allocator if temp alloc fails (#20981)#20981
rstehle wants to merge 2 commits into
pytorch:mainfrom
rstehle:export-D109855815

Conversation

@rstehle

@rstehle rstehle commented Jul 16, 2026

Copy link
Copy Markdown

Summary:

Currently, the resolve_operator step during method_init will fall back to method allocator if temp allocator is zero or not present.

This change adds logic to fallback to method allocator if temp allocator is present, but insufficient in size for the tensor meta.

Reviewed By: Andrew-github-user, rascani

Differential Revision: D109855815

@rstehle rstehle requested a review from JacobSzwejbka as a code owner July 16, 2026 15:42
@pytorch-bot

pytorch-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⚠️ 13 Awaiting Approval

As of commit c42c51c with merge base c6832c8 (image):

AWAITING APPROVAL - The following workflows need approval before CI can run:

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

@meta-cla meta-cla 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 Jul 16, 2026
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jul 16, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: rstehle / name: Regan Stehle (67aa6c0)
  • ✅ login: rstehle / name: rstehle (c42c51c)

@meta-codesync

meta-codesync Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@rstehle has exported this pull request. If you are a Meta employee, you can view the originating Diff in D109855815.

@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@meta-codesync meta-codesync Bot changed the title Resolve Operator fallback to method allocator if temp alloc fails Resolve Operator fallback to method allocator if temp alloc fails (#20981) Jul 16, 2026
rstehle added a commit to rstehle/executorch that referenced this pull request Jul 16, 2026
…torch#20981)

Summary:

Currently, the resolve_operator step during method_init will fall back to method allocator if temp allocator is zero or not present. 

This change adds logic to fallback to method allocator if temp allocator is present, but insufficient in size for the tensor meta.

Reviewed By: Andrew-github-user, rascani

Differential Revision: D109855815
@rstehle rstehle force-pushed the export-D109855815 branch from 2da43a9 to 186e3df Compare July 16, 2026 15:45
…torch#20981)

Summary:

Currently, the resolve_operator step during method_init will fall back to method allocator if temp allocator is zero or not present. 

This change adds logic to fallback to method allocator if temp allocator is present, but insufficient in size for the tensor meta.

Reviewed By: Andrew-github-user, rascani

Differential Revision: D109855815
@rstehle rstehle force-pushed the export-D109855815 branch from 186e3df to 67aa6c0 Compare July 16, 2026 15:48
@rstehle

rstehle commented Jul 16, 2026

Copy link
Copy Markdown
Author

/easycla

@rstehle

rstehle commented Jul 16, 2026

Copy link
Copy Markdown
Author

/easycla

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. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant