Skip to content

Commit

Permalink
update doc (apache#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed May 29, 2018
1 parent 6ebbea5 commit c30ef50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nnvm/docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ NNVM_REGISTER_OP(add)

// register to tell first input can be calculate inplace with first output
NNVM_REGISTER_OP(add)
.attr<FInplaceOption>("FInplaceOption", [](const NodeAttrs& attrs) {
.set_attr<FInplaceOption>("FInplaceOption", [](const NodeAttrs& attrs) {
return std::vector<std::pair<int, int> >{{0, 0}};
});

NNVM_REGISTER_OP(exp)
.set_num_inputs(1)
.attr<FInplaceOption>("FInplaceOption", [](const NodeAttrs& attrs) {
.set_attr<FInplaceOption>("FInplaceOption", [](const NodeAttrs& attrs) {
return std::vector<std::pair<int, int> >{{0, 0}};
});
```
Expand Down

0 comments on commit c30ef50

Please sign in to comment.