Skip to content

Commit

Permalink
Use std::move for GetFunctionOutput. Fix typo with testcase name
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Morris committed Apr 15, 2020
1 parent ff51a76 commit fb2a208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/relay/transforms/partition_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ class Partitioner : public ExprMutator {
auto tuple_get_item_ = TupleGetItem(func_call, index);
tuple_get_item_->checked_type_ = arg->checked_type_;
region_return_tuplegetitem_[region][arg] = tuple_get_item_;
return tuple_get_item_;
return std::move(tuple_get_item_);
}

/*!
Expand Down
2 changes: 1 addition & 1 deletion tests/python/relay/test_pass_partition_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1185,4 +1185,4 @@ def expected():
test_dnnl_fuse()
test_multiple_use_of_an_output()
test_duplicate_outputs()
test_duplicate_tuplegetitem()
test_duplicate_merge_and_tuplegetitem()

0 comments on commit fb2a208

Please sign in to comment.