tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tqc...@apache.org
Subject [incubator-tvm] branch master updated: [TVM] ref_counter -> ref_counter_ (#5184)
Date Tue, 31 Mar 2020 03:27:30 GMT
This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git


The following commit(s) were added to refs/heads/master by this push:
     new 93c70d1  [TVM] ref_counter -> ref_counter_ (#5184)
93c70d1 is described below

commit 93c70d168cd5d6773ae25deaaa7a08ab68b2e6d8
Author: hlu1 <14827759+hlu1@users.noreply.github.com>
AuthorDate: Mon Mar 30 20:27:20 2020 -0700

    [TVM] ref_counter -> ref_counter_ (#5184)
---
 include/tvm/runtime/object.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/tvm/runtime/object.h b/include/tvm/runtime/object.h
index 94614e8..717bf5e 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);
     }


Mime
View raw message