Skip to content

[dynamo][compile-time] Faster inspect getattr_static for torch.Tensor#153522

Closed
anijain2305 wants to merge 4 commits intogh/anijain2305/768/basefrom
gh/anijain2305/768/head
Closed

[dynamo][compile-time] Faster inspect getattr_static for torch.Tensor#153522
anijain2305 wants to merge 4 commits intogh/anijain2305/768/basefrom
gh/anijain2305/768/head

Conversation

@pytorch-bot
Copy link

pytorch-bot bot commented May 14, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

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

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

…orch.Tensor"

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
…orch.Tensor"

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
is_base_tensor_method = True
static_attr = all_tensor_attrs.get(name, None)
if static_attr is None:
is_base_tensor_method = False
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe 1 liner?

is_base_tensor_method = static_attr is not None

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will add that.

…orch.Tensor"

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #153524

@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #153524

1 similar comment
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #153524

pytorchmergebot pushed a commit that referenced this pull request May 15, 2025
@github-actions github-actions bot deleted the gh/anijain2305/768/head branch June 18, 2025 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.

4 participants