tqchen commented on a change in pull request #4684: [Arith] add ShapeVar
representing non-neg valued variable in a tensor shape
URL: https://github.com/apache/incubator-tvm/pull/4684#discussion_r365607382
##########
File path: include/tvm/expr.h
##########
@@ -115,6 +115,43 @@ class Var : public PrimExpr {
using ContainerType = VarNode;
};
+class ShapeVar;
+/*!
+ * \brief A variable node represent a tensor shape size,
+ * whose value must be non-negative.
+ */
+class ShapeVarNode : public VarNode {
+ public:
+ static ShapeVar make(DataType dtype, std::string name_hint);
Review comment:
use constructor in ShapeVar, as per
https://github.com/apache/incubator-tvm/issues/4648
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services