-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add shape_env guards to tracing context #90876
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
…o voz/tracing_context3
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/90876
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 8d2cfba: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Some extra breakpoints left over
@@ -765,15 +765,15 @@ def evaluate_guards_for_args(self, placeholders, args): | |||
return eval(code, {}, dict(zip(arg_names, args))) | |||
|
|||
def get_nontrivial_guards(self): | |||
return [self.simplify(guard) for guard, _ in self.guards if self._maybe_evaluate_static(guard) is None] | |||
return [self.simplify(guard.expr) for guard in self.guards if self._maybe_evaluate_static(guard.expr) is None] |
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.
Why are these changing?
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.
Readability
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.
to elaborate: I could rename this from guard to something like:
return [self.simplify(expr) for expr, _ in self.guards if self._maybe_evaluate_static(expr) is None]
But that felt less readable than this
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: Command
Details for Dev Infra teamRaised by workflow job |
…ch into voz/tracing_context_shapes
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
cc @mlazos @soumith @yanboliang @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @chunyuan-w @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @desertfire