Skip to content

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Feb 8, 2023

Stack from ghstack (oldest at bottom):

Changes:

  • Add simplified kwarg to let you only render guards that are nontrivial (excludes duck sizing)
  • Make a list of strings valid for sources, if you just have some variable names you want to bind to
  • Add test helper show_guards using these facilities, switch a few tests to it

Signed-off-by: Edward Z. Yang ezyang@meta.com

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 8, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 33d3071:
💚 Looks good so far! There are no failures yet. 💚

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

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Feb 8, 2023
Signed-off-by: Edward Z. Yang <ezyangmeta.com>

ghstack-source-id: b127f22
Pull Request resolved: #94404
# guards, and it may be helpful for user output too (be careful though;
# some equality guards are nontrivial! It would be nice to get simplified
# output to print them too)
def produce_guards(self, placeholders, sources,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure a compilation protecting API should offer a simplified version that actively removes some of the safety. It feels like we should always emit them all, and if you need to remove simplified after, do so with a helper func.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we cut the difference by making this a private kwarg?

Copy link
Collaborator

Choose a reason for hiding this comment

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

making it a private kwarg sounds good to me!

Changes:
* Add `simplified` kwarg to let you only render guards that are nontrivial (excludes duck sizing)
* Make a list of strings valid for sources, if you just have some variable names you want to bind to
* Add test helper `show_guards` using these facilities, switch a few tests to it

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

[ghstack-poisoned]
Changes:
* Add `simplified` kwarg to let you only render guards that are nontrivial (excludes duck sizing)
* Make a list of strings valid for sources, if you just have some variable names you want to bind to
* Add test helper `show_guards` using these facilities, switch a few tests to it

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

[ghstack-poisoned]
@ezyang ezyang added the ciflow/trunk Trigger trunk jobs on your pull request label Feb 9, 2023
@ezyang ezyang removed the ciflow/trunk Trigger trunk jobs on your pull request label Feb 10, 2023
Changes:
* Add `simplified` kwarg to let you only render guards that are nontrivial (excludes duck sizing)
* Make a list of strings valid for sources, if you just have some variable names you want to bind to
* Add test helper `show_guards` using these facilities, switch a few tests to it

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

[ghstack-poisoned]
Changes:
* Add `simplified` kwarg to let you only render guards that are nontrivial (excludes duck sizing)
* Make a list of strings valid for sources, if you just have some variable names you want to bind to
* Add test helper `show_guards` using these facilities, switch a few tests to it

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

[ghstack-poisoned]
Changes:
* Add `simplified` kwarg to let you only render guards that are nontrivial (excludes duck sizing)
* Make a list of strings valid for sources, if you just have some variable names you want to bind to
* Add test helper `show_guards` using these facilities, switch a few tests to it

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

[ghstack-poisoned]
@ezyang ezyang mentioned this pull request Feb 12, 2023
# guards, and it may be helpful for user output too (be careful though;
# some equality guards are nontrivial! It would be nice to get simplified
# output to print them too)
def produce_guards(self, placeholders, sources,
Copy link
Collaborator

Choose a reason for hiding this comment

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

making it a private kwarg sounds good to me!

ezyang added a commit that referenced this pull request Feb 14, 2023
CR on #94404

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Feb 14, 2023
CR on #94404

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

ghstack-source-id: 57a1d62
Pull Request resolved: #94782
ezyang added a commit that referenced this pull request Feb 14, 2023
CR on #94404

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Feb 14, 2023
CR on #94404

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

ghstack-source-id: 098045a
Pull Request resolved: #94782
ezyang added a commit to ezyang/pytorch that referenced this pull request Feb 14, 2023
Signed-off-by: Edward Z. Yang <ezyangmeta.com>

ghstack-source-id: f677f95
Pull Request resolved: pytorch#94404
pytorchmergebot pushed a commit that referenced this pull request Feb 15, 2023
CR on #94404

Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: #94782
Approved by: https://github.com/voznesenskym
@facebook-github-bot facebook-github-bot deleted the gh/ezyang/1792/head branch June 8, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged release notes: fx release notes category topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants