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
3 changes: 3 additions & 0 deletions tester/accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ def test(self):
if self.api_config.api_name == "paddle.nn.utils.parameters_to_vector":
paddle_out_grads = []
torch_out_grads = []
if self.api_config.api_name == "paddle.nn.functional.kl_div":
paddle_out_grads = paddle_out_grads[:1]
torch_out_grads = torch_out_grads[:1]

if isinstance(paddle_out_grads, paddle.Tensor):
if isinstance(torch_out_grads, torch.Tensor):
Expand Down