Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix shape inference example
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce committed Sep 13, 2017
1 parent c277e11 commit 7ab7d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/how_to/add_op_in_backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ inline bool QuadraticOpShape(const nnvm::NodeAttrs& attrs,

SHAPE_ASSIGN_CHECK(*out_attrs, 0, in_attrs->at(0));
SHAPE_ASSIGN_CHECK(*in_attrs, 0, out_attrs->at(0));
return out_attrs->at(0).Size() != 0U;
return out_attrs->at(0).ndim() != 0U && out_attrs->at(0).Size() != 0U;
}
```
Here are a few things to note about the above function:
Expand Down

0 comments on commit 7ab7d45

Please sign in to comment.