junrushao1994 commented on a change in pull request #8200:
URL: https://github.com/apache/tvm/pull/8200#discussion_r647963663



##########
File path: python/tvm/runtime/container.py
##########
@@ -137,3 +137,24 @@ def __from_tvm_object__(cls, obj):
         val = str.__new__(cls, content)
         val.__tvm_object__ = obj
         return val
+
+
+@tvm._ffi.register_object("runtime.ShapeTuple")
+class ShapeTuple(Object):
+    """TVM runtime ShapeTuple object.
+    Parameters
+    ----------
+    shape : list[int]
+        The shape list used to construct the object.
+    """
+
+    def __init__(self, shape):
+        for x in shape:

Review comment:
       Perhaps checks if `shape` is instance of `list` as well?




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to