guan404ming commented on code in PR #380:
URL: https://github.com/apache/tvm-ffi/pull/380#discussion_r2660262913


##########
python/tvm_ffi/container.py:
##########
@@ -192,6 +192,10 @@ def __contains__(self, value: object) -> bool:
         """Check if the array contains a value."""
         return _ffi_api.ArrayContains(self, value)
 
+    def __bool__(self) -> bool:
+        """Return True if the array is non-empty."""
+        return self.__chandle__() != 0 and len(self) > 0

Review Comment:
   Sure, I've removed it. Thanks!



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