Skip to content

Commit

Permalink
test=allcase (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengqiwen1997 authored Apr 12, 2023
1 parent ad5bdb6 commit b82d40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/api/paddlebase/test_prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_prod10():
x = np.array([[-0.8, -0.4], [0.7, 0.9]])
axis = 1
res = np.prod(x, axis=axis)
exp = paddle.prod(paddle.to_tensor(x), axis=paddle.to_tensor(axis))
exp = paddle.prod(paddle.to_tensor(x), axis=paddle.to_tensor([axis]))
assert np.allclose(exp.numpy(), res)


Expand Down

0 comments on commit b82d40e

Please sign in to comment.