diff --git a/include/tvm/runtime/object.h b/include/tvm/runtime/object.h index 94614e83963c..717bf5e72fc4 100644 --- a/include/tvm/runtime/object.h +++ b/include/tvm/runtime/object.h @@ -795,7 +795,7 @@ inline void Object::IncRef() { } inline void Object::DecRef() { - if (--ref_counter == 0) { + if (--ref_counter_ == 0) { if (this->deleter_ != nullptr) { (*this->deleter_)(this); }