masahi commented on a change in pull request #8599:
URL: https://github.com/apache/tvm/pull/8599#discussion_r682195329



##########
File path: python/tvm/relay/frontend/common.py
##########
@@ -624,3 +624,128 @@ def to_int_list(np_array):
     cause problems in relay/TOPI.
     """
     return [int(x) for x in np_array]
+
+
+def unbind(data, axis=0):
+    """
+    Unbind was gotten from pytorch.py and modified. The operation removes a 
tensor dimension
+    and returns a tuple of all slices along a given dimension, already without 
it.
+    TODO (vvchernov): It needs such operation on relay side to reduce time 
consumption
+    on squeeze operation.
+
+    Parameters
+    ----------
+    data : relay.Expr
+        Input tensor
+    axis : int
+        Axis along which tensor is splited. Tensors in the list do not have 
this axis.

Review comment:
       `splited` -> `split`
   
   I get what you mean by `Tensors in the list do not have this axis.`, but 
this sentence is not really correct (they do have axis 0 which previously was 
axis1). I suggest just remove this sentence.




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


Reply via email to