Skip to content

Conversation

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 8, 2024

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 32c9b80 with merge base 8c738c9 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

[ghstack-poisoned]
@jansel jansel added the topic: not user facing topic category label Sep 8, 2024
@jansel jansel requested a review from oulgen September 9, 2024 16:20
@jansel jansel marked this pull request as ready for review September 9, 2024 16:20
ctx = {"fn": fn}
exec(
f"""\
def {name}_cache_on_self(self):
Copy link
Collaborator

@Skylion007 Skylion007 Sep 11, 2024

Choose a reason for hiding this comment

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

Ugh, there has to be a better way to dynamically generate the functions. setattr can handle most of the assignments, just need something for dynamically naming the function which should be doable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

setattr is a lot slower...

[ghstack-poisoned]
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Sep 20, 2024
This is a small compile time win, but also makes profiles more readable.

Pull Request resolved: pytorch#135445
Approved by: https://github.com/oulgen
@github-actions github-actions bot deleted the gh/jansel/394/head branch October 13, 2024 02:09
KnAwnime pushed a commit to KnAwnime/Biblioteka that referenced this pull request Oct 16, 2024
ghstack-source-id: 1edf35e
Pull Request resolved: pytorch/pytorch#135445
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants