driazati commented on code in PR #13012:
URL: https://github.com/apache/tvm/pull/13012#discussion_r1027584850
##########
include/tvm/ir/expr.h:
##########
@@ -526,6 +526,7 @@ class IntImm : public PrimExpr {
TVM_DLL IntImm(DataType dtype, int64_t value, Span span = Span());
TVM_DEFINE_OBJECT_REF_METHODS(IntImm, PrimExpr, IntImmNode);
+ TVM_DEFINE_OBJECT_REF_COW_METHOD(IntImmNode);
Review Comment:
do you mean for `TVM_DEFINE_OBJECT_REF_COW_METHOD` or for `IntImmNode` in
particular? the copy on write is used when creating new nodes so every
supported op needs to have it defined, and `IntImm` is one of the supported ops
in `install_debug_spans_ops.h` so it needs it as well
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]