tqchen commented on a change in pull request #5991: URL: https://github.com/apache/incubator-tvm/pull/5991#discussion_r451708586
########## File path: include/tvm/ir/op.h ########## @@ -146,7 +146,7 @@ class OpNode : public RelayExprNode { // Internal function to compute if it is primitive op bool IsPrimitiveOp_() const { const auto& fn_ty = this->op_type; - if (fn_ty.get() == 0) return false; + CHECK_NE(fn_ty.get(), nullptr); Review comment: CHECK(fn_ty != nullptr) ---------------------------------------------------------------- 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: us...@infra.apache.org