diff --git a/ivy/functional/frontends/paddle/nn/functional/common.py b/ivy/functional/frontends/paddle/nn/functional/common.py index 7011169bc2d81..08d93fde5ea50 100644 --- a/ivy/functional/frontends/paddle/nn/functional/common.py +++ b/ivy/functional/frontends/paddle/nn/functional/common.py @@ -110,11 +110,14 @@ def linear(x, weight, bias=None, name=None): weight = ivy.swapaxes(weight, -1, -2) return ivy.linear(x, weight, bias=bias) + @to_ivy_arrays_and_back @with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle") -def alpha_dropout( x, p=0.5, training=True, name=None ): +def alpha_dropout(x, p=0.5, training=True, name=None): return ivy.alpha_dropout(x, p=p, training=training) + + @to_ivy_arrays_and_back @with_supported_dtypes({"2.5.1 and below": ("float32", "float64")}, "paddle") -def fold( x, output_sizes, kernel_sizes, strides=1, paddings=0, dilations=1, name=None ): - return ivy.fold(x, output_sizes, kernel_sizes, strides, paddings, dilations) \ No newline at end of file +def fold(x, output_sizes, kernel_sizes, strides=1, paddings=0, dilations=1, name=None): + return ivy.fold(x, output_sizes, kernel_sizes, strides, paddings, dilations) diff --git a/ivy_tests/test_ivy/test_frontends/test_paddle/test_nn/test_functional/test_common.py b/ivy_tests/test_ivy/test_frontends/test_paddle/test_nn/test_functional/test_common.py index a83056ebefd52..c60f993c8b98f 100644 --- a/ivy_tests/test_ivy/test_frontends/test_paddle/test_nn/test_functional/test_common.py +++ b/ivy_tests/test_ivy/test_frontends/test_paddle/test_nn/test_functional/test_common.py @@ -417,6 +417,7 @@ def test_linear( bias=bias, ) + # alpha_dropout @handle_frontend_test( fn_tree="paddle.nn.functional.common.alpha_dropout", @@ -464,8 +465,9 @@ def test_paddle_alpha_dropout( axis=axis, mode=mode, ) - -#fold + + +# fold @handle_frontend_test( fn_tree="paddle.nn.functional.common.fold", d_type_and_x=helpers.dtype_and_values( @@ -511,4 +513,4 @@ def test_paddle_fold( training=training, axis=axis, mode=mode, - ) \ No newline at end of file + )