cyx-6 commented on code in PR #593:
URL: https://github.com/apache/tvm-ffi/pull/593#discussion_r3332675589


##########
python/tvm_ffi/cython/object.pxi:
##########
@@ -102,10 +102,10 @@ cdef class CObject:
         # case of error before chandle is set
         self.chandle = NULL
 
-    def __dealloc__(self):
-        if self.chandle != NULL:
-            CHECK_CALL(TVMFFIObjectDecRef(self.chandle))
-            self.chandle = NULL
+    def __del__(self):

Review Comment:
   a `tp_finalize`-free version is updated. we are now using `tp_alloc` + 
`tp_free` as alternative.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to