From a3c18f527a71effbb375e14cdf4b98f5ded3515e Mon Sep 17 00:00:00 2001 From: Sai-Suraj-27 Date: Sat, 6 Jan 2024 15:47:31 +0530 Subject: [PATCH 1/2] Fixed un-expected key-word argument in ivy.avg_pool2d() function call. --- ivy/functional/frontends/mindspore/ops/function/nn_func.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ivy/functional/frontends/mindspore/ops/function/nn_func.py b/ivy/functional/frontends/mindspore/ops/function/nn_func.py index 864119a245bc0..1be10029dd39f 100644 --- a/ivy/functional/frontends/mindspore/ops/function/nn_func.py +++ b/ivy/functional/frontends/mindspore/ops/function/nn_func.py @@ -114,7 +114,7 @@ def avg_pool2d( kernel_size, stride=None, padding=0, - pad_mode=False, + ceil_mode=False, count_include_pad=True, divisor_override=None, ): @@ -149,7 +149,7 @@ def avg_pool2d( stride, padding_str, data_format=data_format, - pad_mode=pad_mode, + ceil_mode=ceil_mode, count_include_pad=count_include_pad, divisor_override=divisor_override, ) From b7b04c0c603e86e18c627b92d960fb49256967ab Mon Sep 17 00:00:00 2001 From: Sai-Suraj-27 Date: Tue, 9 Jan 2024 18:19:30 +0530 Subject: [PATCH 2/2] Corrected default values of few arguments in avg_pool2d function. --- ivy/functional/frontends/mindspore/ops/function/nn_func.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ivy/functional/frontends/mindspore/ops/function/nn_func.py b/ivy/functional/frontends/mindspore/ops/function/nn_func.py index 1be10029dd39f..c476401281148 100644 --- a/ivy/functional/frontends/mindspore/ops/function/nn_func.py +++ b/ivy/functional/frontends/mindspore/ops/function/nn_func.py @@ -111,12 +111,12 @@ def adaptive_avg_pool2d(input, output_size): @to_ivy_arrays_and_back def avg_pool2d( input, - kernel_size, - stride=None, + kernel_size=1, + stride=1, padding=0, ceil_mode=False, count_include_pad=True, - divisor_override=None, + divisor_override=0, ): # Figure out input dims N input_rank = input.ndim