junrushao commented on code in PR #45:
URL: https://github.com/apache/tvm-ffi/pull/45#discussion_r2371204145


##########
python/tvm_ffi/container.py:
##########
@@ -143,6 +144,14 @@ def __repr__(self) -> str:
             return type(self).__name__ + "(chandle=None)"
         return "[" + ", ".join([x.__repr__() for x in self]) + "]"
 
+    def __add__(self, other: Iterable[T]) -> Array[T]:
+        """Concatenate two arrays."""
+        return type(self)(itertools.chain(self, other))
+
+    def __radd__(self, other: Iterable[T]) -> Array[T]:
+        """Concatenate two arrays."""
+        return type(self)(itertools.chain(other, self))

Review Comment:
   that's probably good enough



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