You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2023/01/05 09:39:20 UTC

[GitHub] [tvm] woobinw commented on a diff in pull request #13701: [Frontend][PaddlePaddle] Fix bug, when the output is a dimension, it …

woobinw commented on code in PR #13701:
URL: https://github.com/apache/tvm/pull/13701#discussion_r1062278664


##########
tests/python/frontend/paddlepaddle/test_forward.py:
##########
@@ -1681,5 +1687,15 @@ def forward(self, inputs, prev_h):
         )
 
 
+@tvm.testing.uses_gpu
+def test_forward_topk():
+    @paddle.jit.to_static
+    def topk1(inputs):
+        return paddle.topk(inputs, k=1)
+
+    input_data = paddle.to_tensor([1, 4, 5, 7])
+    verify_model(topk1, input_data=input_data)

Review Comment:
   according to paddle.topk api, there seems is no a argument to control the output that only have the values or indices



-- 
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: commits-unsubscribe@tvm.apache.org

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