Skip to content

Commit

Permalink
[Zero-Dim] support input 0D Tensor for fmax/fmin/complex api (PaddleP…
Browse files Browse the repository at this point in the history
…addle#49730)

* [Zero-Dim] support input 0D Tensor for maximum,minimum,allclose,sigmoid_focal_loss

* [Zero-Dim] add backward test for sigmoid_focal_loss with 0-D input Tensor

* [Zero-Dim] support input 0D Tensor for fmax,fmin,complex
  • Loading branch information
FlyingQianMM authored and yjjiang11 committed Jan 13, 2023
1 parent a8f2d0e commit 895044c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/paddle/fluid/tests/unittests/test_zero_dim_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ def test_static(self):
paddle.logical_xor,
paddle.maximum,
paddle.minimum,
paddle.fmax,
paddle.fmin,
paddle.complex,
]

binary_int_api_list = [
Expand Down

0 comments on commit 895044c

Please sign in to comment.