-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[jit] Pretty printer improvements #12179
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
* Replaces `prim::PythonOp` with the name of the function being called * Delays printing values used in `prim::Return` nodes until the return node itself if that is the only place the value is used to remove some useless assigns
facebook-github-bot
left a comment
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.
driazati has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
zdevito
left a comment
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.
Looks good. I have minor nits.
| printValueList(out, node->inputs()); | ||
|
|
||
| out << "\n"; | ||
| if (!is_resolving) { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| printIf(out, node, level); | ||
| break; | ||
| default: | ||
| if (!is_resolving && nodeOnlyOutputReturns(node)) { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| std::unordered_map<const Value*, std::string> value_names_; | ||
|
|
||
| // Nodes that were skipped to be printed later | ||
| std::unordered_set<const Node*> unresolved_nodes_; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
facebook-github-bot
left a comment
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.
driazati is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
facebook-github-bot
left a comment
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.
driazati has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
prim::PythonOpwith the name of the function being calledprim::Returnnodes until the returnnode itself if that is the only place the value is used to remove some
useless assigns
@zdevito @apaszke @ezyang