Skip to content
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

[RELAY] Re-wrote the Graph Partitioner to support multiple outputs #5143

Merged
merged 5 commits into from
Mar 31, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[RELAY] Re-wrote the Graph Partitioner to support multiple outputs
    *fixed an implicit copy to a move
manupak committed Mar 31, 2020
commit 911c421296517a4f26f509f96d3cfba8f9473977
2 changes: 1 addition & 1 deletion src/relay/transforms/partition_graph.cc
Original file line number Diff line number Diff line change
@@ -267,7 +267,7 @@ class Partitioner : public ExprMutator {

if (region->GetOutputs().size() == 1) {
// If there is only a single output; no need to add a tuplegetitem node
return ret;
return std::move(ret);
} else {
// Add a tuplegetitem node to select this output out of many
auto tuple_get_item_ = TupleGetItem(ret, index);