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



##########
File path: python/tvm/relay/frontend/pytorch.py
##########
@@ -2164,6 +2164,24 @@ def is_floating_point(self, inputs, input_types):
         is_float = input_type in ["float32", "float64", "float16", "bfloat16"]
         return _expr.const(is_float)
 
+    def unique(self, inputs, input_types):
+        assert len(inputs) == 4
+        [data, is_sorted, return_inverse, return_counts] = inputs

Review comment:
       ah sorry you are right. So in Torchscript `unique` always returns 
indices, regardless of `return_inverse` option? The python one 
https://pytorch.org/docs/stable/generated/torch.unique.html can return only one 
output.




----------------------------------------------------------------
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:
[email protected]


Reply via email to