Skip to content

Conversation

@driazati
Copy link
Contributor

@driazati driazati commented Sep 28, 2018

  • 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

@zdevito @apaszke @ezyang

* 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
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

Copy link
Contributor

@zdevito zdevito left a 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.

printIf(out, node, level);
break;
default:
if (!is_resolving && nodeOnlyOutputReturns(node)) {

This comment was marked as off-topic.

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.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants