guan404ming opened a new pull request, #379:
URL: https://github.com/apache/tvm-ffi/pull/379

   ## Why
   
   Currently, Array and Map objects rely on object identity for equality and 
hashing (or are unhashable). This prevents users from comparing them 
structurally
   
   ## How
   
   - C++
       - Exposed StructuralEqual and StructuralHash via FFI in container.cc.
       - Updated to use StructuralEqual in ArrayContains
   - Python: Implemented __eq__ and __hash__ for Array and Map using the C++ 
backend.
   - Tests: Added verification for structural equality and hashing consistency.


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