-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add utility for binding symbols based on arguments passed to placeholders #90912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ders Signed-off-by: Edward Z. Yang <ezyang@fb.com> [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/90912
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 1615c8f: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…to placeholders" Signed-off-by: Edward Z. Yang <ezyangfb.com> [ghstack-poisoned]
@@ -768,6 +771,43 @@ def evaluate_guards_for_args(self, placeholders, args): | |||
code = self.codegen_guards(placeholders, arg_names) | |||
return eval(code, {}, dict(zip(arg_names, args))) | |||
|
|||
def bind_symbols(self, placeholders, args): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a small doc explaining what this does?
…to placeholders" Signed-off-by: Edward Z. Yang <ezyangfb.com> [ghstack-poisoned]
This pull request has been merged in 67436f6. |
Stack from ghstack (oldest at bottom):
Signed-off-by: Edward Z. Yang ezyang@fb.com