Skip to content

Commit

Permalink
Review comment, added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
siju-samuel committed Oct 25, 2018
1 parent bed1243 commit 797b5ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/tvm/relay/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ class TensorTypeNode : public BaseTensorTypeNode {
v->Visit("span", &span);
}

/*! \brief Return product of elements in the shape */
/*! \brief Return product of elements in the shape.
* \return (d1 * d_2 ... * d_n) if shape is (d_1, d_2, ..., d_n) and 1 if shape size is zero.
*/
TVM_DLL IndexExpr Size() const;

TVM_DLL static TensorType make(Array<IndexExpr> shape, DataType dtype);
Expand Down

0 comments on commit 797b5ea

Please sign in to comment.