Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tester/accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ def test(self):
if "return_index=True" in self.api_config.config:
paddle_output = list(paddle_output)
del paddle_output[1]

if self.api_config.api_name.endswith("topk"):
paddle_output = paddle_output[0]
torch_output = torch_output[0]

if isinstance(paddle_output, paddle.Tensor):
if isinstance(torch_output, torch.Tensor):
Expand Down