From 0271d9e7f9fca474193bc11e9cc26ed1f566c588 Mon Sep 17 00:00:00 2001 From: HydrogenSulfate <490868991@qq.com> Date: Sun, 30 Apr 2023 03:09:28 +0800 Subject: [PATCH] fix test_autograd_dynamic (#53473) Co-authored-by: zhwesky2010 --- test/autograd/test_autograd_dynamic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/autograd/test_autograd_dynamic.py b/test/autograd/test_autograd_dynamic.py index e8e5d8b626c..2e6033a6ee9 100644 --- a/test/autograd/test_autograd_dynamic.py +++ b/test/autograd/test_autograd_dynamic.py @@ -630,7 +630,7 @@ class TestHessianBatchFirst(unittest.TestCase): def func_ndim_bigger_than_2(self): def func(x): - return (x * x).sum() + return (x * x).sum([1, 2, 3]) with self.assertRaises(ValueError): x = paddle.ones([3, 3, 3, 3]) -- GitLab