Skip to content

[dynamo][index] Speedup index method for constant data structures#173612

Closed
anijain2305 wants to merge 1 commit intogh/anijain2305/990/basefrom
gh/anijain2305/990/head
Closed

[dynamo][index] Speedup index method for constant data structures#173612
anijain2305 wants to merge 1 commit intogh/anijain2305/990/basefrom
gh/anijain2305/990/head

Conversation

@anijain2305
Copy link
Copy Markdown
Contributor

@anijain2305 anijain2305 commented Jan 28, 2026

[ghstack-poisoned]
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Jan 28, 2026

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

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

anijain2305 added a commit that referenced this pull request Jan 28, 2026
Saves 0.5 seconds on 15.3 seconds of compile time of a model


ghstack-source-id: da57d75
Pull-Request: #173612
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Jan 28, 2026

🔗 Helpful Links

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

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

✅ No Failures

As of commit b5d19f4 with merge base cec00df (image):
💚 Looks good so far! There are no failures yet. 💚

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

@anijain2305 anijain2305 added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category labels Jan 28, 2026
Copy link
Copy Markdown
Contributor

@Lucaskabela Lucaskabela left a comment

Choose a reason for hiding this comment

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

Generally LGTM - I think for posterity we can comment an example of what the "constant data structure" is

kwargs,
)
try:
# Speedup trace times for constant data structures
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Let's add a comment like:

# example would be a variable for a list like x = [1, 2, 3, 4]

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Starting merge as part of PR stack under #173645

pytorchmergebot pushed a commit that referenced this pull request Jan 28, 2026
Saves 0.3 second on 14.8 seconds of compile time.

Pull Request resolved: #173645
Approved by: https://github.com/Lucaskabela
ghstack dependencies: #173582, #173612
kapilsh pushed a commit to kapilsh/pytorch that referenced this pull request Feb 2, 2026
…torch#173612)

Saves 0.5 seconds on 15.3 seconds of compile time of a model

Pull Request resolved: pytorch#173612
Approved by: https://github.com/Lucaskabela
ghstack dependencies: pytorch#173582
kapilsh pushed a commit to kapilsh/pytorch that referenced this pull request Feb 2, 2026
Saves 0.3 second on 14.8 seconds of compile time.

Pull Request resolved: pytorch#173645
Approved by: https://github.com/Lucaskabela
ghstack dependencies: pytorch#173582, pytorch#173612
@github-actions github-actions Bot deleted the gh/anijain2305/990/head branch February 28, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants