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/135446

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

✅ No Failures

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

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

[ghstack-poisoned]
jansel added a commit that referenced this pull request Sep 8, 2024
ghstack-source-id: 3abf721
Pull Request resolved: #135446
@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
@jansel jansel added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 9, 2024
@cache_on_self
def get_buffer_names(self) -> OrderedSet[str]:
return OrderedSet(out.get_name() for out in self.outputs)
return OrderedSet([out.get_name() for out in self.outputs])
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this optimization actually safe? can't self.outputs change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, they are immutable.

[ghstack-poisoned]
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