From a015f815d3ded5e6eadc659349bef3dabaad7fb2 Mon Sep 17 00:00:00 2001 From: FlyingQianMM <245467267@qq.com> Date: Thu, 12 Jan 2023 11:56:06 +0800 Subject: [PATCH] [Zero-Dim] support input 0D Tensor for fmax/fmin/complex api (#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 --- python/paddle/fluid/tests/unittests/test_zero_dim_tensor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/paddle/fluid/tests/unittests/test_zero_dim_tensor.py b/python/paddle/fluid/tests/unittests/test_zero_dim_tensor.py index 2dc546dadb..4023023ab5 100644 --- a/python/paddle/fluid/tests/unittests/test_zero_dim_tensor.py +++ b/python/paddle/fluid/tests/unittests/test_zero_dim_tensor.py @@ -285,6 +285,9 @@ binary_api_list = [ paddle.logical_xor, paddle.maximum, paddle.minimum, + paddle.fmax, + paddle.fmin, + paddle.complex, ] binary_int_api_list = [ -- GitLab