未验证 提交 fcf26279 编写于 作者: C Charles-hit 提交者: GitHub

fix unit test (#48624)

fix test_primapi
上级 0f3b1ad6
......@@ -677,16 +677,15 @@ where_wrap = lambda x, y: paddle.where(paddle.eye(3, 4) == 1, x, y)
None,
'float32',
),
('var', paddle.var, (np.random.rand(200, 324),), None, 'float32'),
(
'var_with_axis',
lambda x: paddle.var(x, axis=1),
(np.random.rand(10, 20, 30),),
'var',
lambda x: paddle.var(x, unbiased=False),
(np.random.rand(200, 324),),
None,
'float32',
),
(
'var_without_unbiased',
'var_with_axis',
lambda x: paddle.var(x, axis=1, unbiased=False),
(np.random.rand(10, 20, 30),),
None,
......@@ -694,7 +693,7 @@ where_wrap = lambda x, y: paddle.where(paddle.eye(3, 4) == 1, x, y)
),
(
'var_with_keepdim',
lambda x: paddle.var(x, axis=1, keepdim=True),
lambda x: paddle.var(x, axis=1, keepdim=True, unbiased=False),
(np.random.rand(10, 20, 30),),
None,
'float32',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册