ivy icon indicating copy to clipboard operation
ivy copied to clipboard

ENH: equal_all is added in paddle tesnor.py

Open MuhammadNizamani opened this issue 1 year ago • 7 comments

Closed #17949

MuhammadNizamani avatar Jun 28 '23 08:06 MuhammadNizamani

Hey @MuhammadNizamani

To streamline the review process a little bit. Do you mind adding a comment and in it "add_frontend_checklist" (without double quotes nor newlines)? Our automation will convert your comment into a checklist where you can fill which points you have completed, then I'll start our review process

KareemMAX avatar Jun 28 '23 16:06 KareemMAX

Frontend Task Checklist

IMPORTANT NOTICE 🚨:

The Ivy Docs represent the ground truth for the task descriptions and this checklist should only be used as a supplementary item to aid with the review process.

LEGEND 🗺:

  • ❌ : Check item is not completed.
  • ✅ : Check item is ready for review.
  • 🆘 : Stuck/Doubting implementation (PR author should add comments explaining why).
  • ⏩ : Check is not applicable to function (skip).
  • 🆗 : Check item is implemented and does not require any edits.

CHECKS 📑:

    • [x] 🆗: The function/method definition is not missing any of the original arguments.
    • [x] ⏩: In case the function/method to be implemented is an alias of an existing function/method:
        • [x] ⏩: It is being declared as such by setting fun1 = fun2, rather than being re-implemented from scratch.
        • [x] ⏩: The alias is added to the existing function/method's test in the aliases parameter of handle_frontend_test/handle_frontend_method.
    • [x] 🆗: The naming of the function/method and its arguments exactly matches the original.
    • [x] 🆗: No defined argument is being ignored in the function/method's implementation.
    • [x] ⏩: In special cases where an argument's implementation should be pending due to an incomplete superset of an ivy function:
        • [x] ⏩: A descriptive comment has been left under the Implement superset behavior ToDo list in https://github.com/unifyai/ivy/issues/6406.
        • [x] ⏩: A ToDo comment has been added prompting to pass the frontend argument to the ivy function whose behavior is to be extended.
    • [x] 🆗: In case a frontend function is being added:
        • [x] 🆗: It is a composition of ivy functions.
        • [x] ⏩: In case the needed composition is long (using numerous ivy functions), a Missing Function Suggestion issue has been opened to suggest a new ivy function should be added to shorten the frontend implementation.
        • [x] ⏩: @to_ivy_arrays_and_back has been added to the function.
    • [x] ⏩: In case a frontend method is being added:
        • [x] ⏩: It is composed of existing frontend functions or methods.
        • [x] ⏩: If a required frontend function has not yet been added, the method may be implemented as a composition of ivy functions, making sure that:
          • [x] ⏩: @to_ivy_arrays_and_back has been added to the method.
          • [x] ⏩: A ToDo comment has been made prompting to remove the decorator and update the implementation as soon as the missing function has been added.
    • [x] 🆗: The function/method's test has been added (except in the alias case mentioned in <2>):
        • [x] 🆗: All supported arguments are being generated in handle_frontend_test/handle_frontend_method and passed to test_frontend_function/test_frontend_method.
        • [x] 🆗: The argument generation covers all possible supported values. Array sizes, dimensions, and axes adhere to the full supported set of the original function/method.
        • [x] 🆗: The available_dtypes parameter passed to the helper generating the function/method's input array is set to helpers.get_dtypes("valid"). If there are unsupported dtypes that cause the test to fail, they should be handled by adding @with_supported_dtypes/@with_unsupported_dtype to the function/method.
    • [x] 🆗 The PR is not introducing any test failures.
        • [x] 🆗: The lint checks are passing.
        • [x] ❌: The implemented test is passing for all backends.
    • [x] 🆗: The PR closes a Sub Task issue linked to one of the open frontend ToDo lists.
    • [x] 🆗: The function/method and its test have been added to the correct .py files corresponding to the addressed ToDo list.
    • [x] 🆗: The PR only contains changes relevant to the addressed subtask.

MuhammadNizamani avatar Jun 28 '23 17:06 MuhammadNizamani

@KareemMAX check list added

MuhammadNizamani avatar Jun 28 '23 17:06 MuhammadNizamani

@KareemMAX I will change it when I get free thanks for your review.

MuhammadNizamani avatar Jun 29 '23 14:06 MuhammadNizamani

Hey @MuhammadNizamani,

Great work, but seems like tests are failing on all backends. Can you look into that?

@KareemMAX can you tell me more about tests which are failing? becasue local test are passing take a look the pic equall_all

MuhammadNizamani avatar Jun 29 '23 17:06 MuhammadNizamani

@MuhammadNizamani weird, I guess I'll provide you with my whole log. I'm testing on codespaces.

Error output
@KareemMAX ➜ /workspaces/ivy (equal_all) $ pytest ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py::test_paddle_equal_all
Use Database in ReadOnly Mode with local caching !
================================================================================= test session starts =================================================================================
platform linux -- Python 3.10.0, pytest-7.3.2, pluggy-1.2.0
backend(s): all
device: cpu
number of Hypothesis examples: 25
rootdir: /workspaces/ivy
plugins: typeguard-2.13.3, anyio-3.7.0, hypothesis-6.79.2, metadata-3.0.0, json-report-1.5.0
collected 5 items                                                                                                                                                                     

ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py FFFFF                                                                                           [100%]

====================================================================================== FAILURES =======================================================================================
________________________________________________________ test_paddle_equal_all[cpu-ivy.functional.backends.numpy-False-False] _________________________________________________________

frontend = 'paddle', on_device = 'cpu'

    @handle_frontend_method(
>       class_tree=CLASS_TREE,
        init_tree="paddle.to_tensor",
        method_name="equal_all",
        dtypes_and_x=helpers.dtype_and_values(
            available_dtypes=helpers.get_dtypes("valid"),
            num_arrays=2,
            min_value=-np.inf,
            max_value=np.inf,
            shared_dtype=True,
            safety_factor_scale="log",
            small_abs_safety_factor=32,
        ),
    )

ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py:1856: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py:1878: in test_paddle_equal_all
    helpers.test_frontend_method(
ivy_tests/test_ivy/helpers/function_testing.py:1542: in test_frontend_method
    value_test(
ivy_tests/test_ivy/helpers/assertions.py:111: in value_test
    assert_same_type_and_shape([ret_np_flat, ret_np_from_gt_flat])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

values = [[array([ True])], [array(True)]], this_key_chain = None

    def assert_same_type_and_shape(values, this_key_chain=None):
        x_, y_ = values
        for x, y in zip(x_, y_):
            if isinstance(x, np.ndarray):
                x_d = str(x.dtype).replace("longlong", "int64")
                y_d = str(y.dtype).replace("longlong", "int64")
>               assert (
                    x.shape == y.shape
                ), "returned shape = {}, ground-truth returned shape = {}".format(
                    x.shape, y.shape
                )
E               AssertionError: returned shape = (1,), ground-truth returned shape = ()
E               Falsifying example: test_paddle_equal_all(
E                   frontend='paddle',
E                   on_device='cpu',
E                   dtypes_and_x=(['bool', 'bool'], [array(False), array(False)]),
E                   method_flags=FrontendMethodTestFlags(
E                       num_positional_args=0,
E                       as_variable=[False],
E                       native_arrays=[False],
E                   ),
E                   frontend_method_data=FrontendMethodData(ivy_init_module=<module 'ivy.functional.frontends.paddle' from '/workspaces/ivy/ivy/functional/frontends/paddle/__init__.py'>, framework_init_module=<module 'paddle' from '/opt/fw/paddle/paddle/__init__.py'>, init_name='to_tensor', method_name='equal_all'),
E                   init_flags=FrontendMethodTestFlags(
E                       num_positional_args=1,
E                       as_variable=[False],
E                       native_arrays=[False],
E                   ),
E               )
E               
E               You can reproduce this example by temporarily adding @reproduce_failure('6.79.2', b'AAEAAAAAAAAAAAA=') as a decorator on your test case

ivy_tests/test_ivy/helpers/assertions.py:71: AssertionError
_________________________________________________________ test_paddle_equal_all[cpu-ivy.functional.backends.jax-False-False] __________________________________________________________

frontend = 'paddle', on_device = 'cpu'

    @handle_frontend_method(
>       class_tree=CLASS_TREE,
        init_tree="paddle.to_tensor",
        method_name="equal_all",
        dtypes_and_x=helpers.dtype_and_values(
            available_dtypes=helpers.get_dtypes("valid"),
            num_arrays=2,
            min_value=-np.inf,
            max_value=np.inf,
            shared_dtype=True,
            safety_factor_scale="log",
            small_abs_safety_factor=32,
        ),
    )

ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py:1856: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py:1878: in test_paddle_equal_all
    helpers.test_frontend_method(
ivy_tests/test_ivy/helpers/function_testing.py:1542: in test_frontend_method
    value_test(
ivy_tests/test_ivy/helpers/assertions.py:111: in value_test
    assert_same_type_and_shape([ret_np_flat, ret_np_from_gt_flat])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

values = [[array([ True])], [array(True)]], this_key_chain = None

    def assert_same_type_and_shape(values, this_key_chain=None):
        x_, y_ = values
        for x, y in zip(x_, y_):
            if isinstance(x, np.ndarray):
                x_d = str(x.dtype).replace("longlong", "int64")
                y_d = str(y.dtype).replace("longlong", "int64")
>               assert (
                    x.shape == y.shape
                ), "returned shape = {}, ground-truth returned shape = {}".format(
                    x.shape, y.shape
                )
E               AssertionError: returned shape = (1,), ground-truth returned shape = ()
E               Falsifying example: test_paddle_equal_all(
E                   frontend='paddle',
E                   on_device='cpu',
E                   dtypes_and_x=(['bool', 'bool'], [array(False), array(False)]),
E                   method_flags=FrontendMethodTestFlags(
E                       num_positional_args=0,
E                       as_variable=[False],
E                       native_arrays=[False],
E                   ),
E                   frontend_method_data=FrontendMethodData(ivy_init_module=<module 'ivy.functional.frontends.paddle' from '/workspaces/ivy/ivy/functional/frontends/paddle/__init__.py'>, framework_init_module=<module 'paddle' from '/opt/fw/paddle/paddle/__init__.py'>, init_name='to_tensor', method_name='equal_all'),
E                   init_flags=FrontendMethodTestFlags(
E                       num_positional_args=1,
E                       as_variable=[False],
E                       native_arrays=[False],
E                   ),
E               )
E               
E               You can reproduce this example by temporarily adding @reproduce_failure('6.79.2', b'AXicY2RAAAAAGAAC') as a decorator on your test case

ivy_tests/test_ivy/helpers/assertions.py:71: AssertionError
______________________________________________________ test_paddle_equal_all[cpu-ivy.functional.backends.tensorflow-False-False] ______________________________________________________

frontend = 'paddle', on_device = 'cpu'

    @handle_frontend_method(
>       class_tree=CLASS_TREE,
        init_tree="paddle.to_tensor",
        method_name="equal_all",
        dtypes_and_x=helpers.dtype_and_values(
            available_dtypes=helpers.get_dtypes("valid"),
            num_arrays=2,
            min_value=-np.inf,
            max_value=np.inf,
            shared_dtype=True,
            safety_factor_scale="log",
            small_abs_safety_factor=32,
        ),
    )

ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py:1856: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py:1878: in test_paddle_equal_all
    helpers.test_frontend_method(
ivy_tests/test_ivy/helpers/function_testing.py:1542: in test_frontend_method
    value_test(
ivy_tests/test_ivy/helpers/assertions.py:111: in value_test
    assert_same_type_and_shape([ret_np_flat, ret_np_from_gt_flat])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

values = [[array([ True])], [array(True)]], this_key_chain = None

    def assert_same_type_and_shape(values, this_key_chain=None):
        x_, y_ = values
        for x, y in zip(x_, y_):
            if isinstance(x, np.ndarray):
                x_d = str(x.dtype).replace("longlong", "int64")
                y_d = str(y.dtype).replace("longlong", "int64")
>               assert (
                    x.shape == y.shape
                ), "returned shape = {}, ground-truth returned shape = {}".format(
                    x.shape, y.shape
                )
E               AssertionError: returned shape = (1,), ground-truth returned shape = ()
E               Falsifying example: test_paddle_equal_all(
E                   frontend='paddle',
E                   on_device='cpu',
E                   dtypes_and_x=(['bool', 'bool'], [array(False), array(False)]),
E                   method_flags=FrontendMethodTestFlags(
E                       num_positional_args=0,
E                       as_variable=[False],
E                       native_arrays=[False],
E                   ),
E                   frontend_method_data=FrontendMethodData(ivy_init_module=<module 'ivy.functional.frontends.paddle' from '/workspaces/ivy/ivy/functional/frontends/paddle/__init__.py'>, framework_init_module=<module 'paddle' from '/opt/fw/paddle/paddle/__init__.py'>, init_name='to_tensor', method_name='equal_all'),
E                   init_flags=FrontendMethodTestFlags(
E                       num_positional_args=1,
E                       as_variable=[False],
E                       native_arrays=[False],
E                   ),
E               )
E               
E               You can reproduce this example by temporarily adding @reproduce_failure('6.79.2', b'AXicY2RAAAAAGAAC') as a decorator on your test case

ivy_tests/test_ivy/helpers/assertions.py:71: AssertionError
________________________________________________________ test_paddle_equal_all[cpu-ivy.functional.backends.torch-False-False] _________________________________________________________

frontend = 'paddle', on_device = 'cpu'

    @handle_frontend_method(
>       class_tree=CLASS_TREE,
        init_tree="paddle.to_tensor",
        method_name="equal_all",
        dtypes_and_x=helpers.dtype_and_values(
            available_dtypes=helpers.get_dtypes("valid"),
            num_arrays=2,
            min_value=-np.inf,
            max_value=np.inf,
            shared_dtype=True,
            safety_factor_scale="log",
            small_abs_safety_factor=32,
        ),
    )

ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py:1856: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py:1878: in test_paddle_equal_all
    helpers.test_frontend_method(
ivy_tests/test_ivy/helpers/function_testing.py:1542: in test_frontend_method
    value_test(
ivy_tests/test_ivy/helpers/assertions.py:111: in value_test
    assert_same_type_and_shape([ret_np_flat, ret_np_from_gt_flat])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

values = [[array([ True])], [array(True)]], this_key_chain = None

    def assert_same_type_and_shape(values, this_key_chain=None):
        x_, y_ = values
        for x, y in zip(x_, y_):
            if isinstance(x, np.ndarray):
                x_d = str(x.dtype).replace("longlong", "int64")
                y_d = str(y.dtype).replace("longlong", "int64")
>               assert (
                    x.shape == y.shape
                ), "returned shape = {}, ground-truth returned shape = {}".format(
                    x.shape, y.shape
                )
E               AssertionError: returned shape = (1,), ground-truth returned shape = ()
E               Falsifying example: test_paddle_equal_all(
E                   frontend='paddle',
E                   on_device='cpu',
E                   dtypes_and_x=(['bool', 'bool'], [array(False), array(False)]),
E                   method_flags=FrontendMethodTestFlags(
E                       num_positional_args=0,
E                       as_variable=[False],
E                       native_arrays=[False],
E                   ),
E                   frontend_method_data=FrontendMethodData(ivy_init_module=<module 'ivy.functional.frontends.paddle' from '/workspaces/ivy/ivy/functional/frontends/paddle/__init__.py'>, framework_init_module=<module 'paddle' from '/opt/fw/paddle/paddle/__init__.py'>, init_name='to_tensor', method_name='equal_all'),
E                   init_flags=FrontendMethodTestFlags(
E                       num_positional_args=1,
E                       as_variable=[False],
E                       native_arrays=[False],
E                   ),
E               )
E               
E               You can reproduce this example by temporarily adding @reproduce_failure('6.79.2', b'AXicY2RAAAAAGAAC') as a decorator on your test case

ivy_tests/test_ivy/helpers/assertions.py:71: AssertionError
________________________________________________________ test_paddle_equal_all[cpu-ivy.functional.backends.paddle-False-False] ________________________________________________________

frontend = 'paddle', on_device = 'cpu'

    @handle_frontend_method(
>       class_tree=CLASS_TREE,
        init_tree="paddle.to_tensor",
        method_name="equal_all",
        dtypes_and_x=helpers.dtype_and_values(
            available_dtypes=helpers.get_dtypes("valid"),
            num_arrays=2,
            min_value=-np.inf,
            max_value=np.inf,
            shared_dtype=True,
            safety_factor_scale="log",
            small_abs_safety_factor=32,
        ),
    )

ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py:1856: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py:1878: in test_paddle_equal_all
    helpers.test_frontend_method(
ivy_tests/test_ivy/helpers/function_testing.py:1542: in test_frontend_method
    value_test(
ivy_tests/test_ivy/helpers/assertions.py:111: in value_test
    assert_same_type_and_shape([ret_np_flat, ret_np_from_gt_flat])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

values = [[array([ True])], [array(True)]], this_key_chain = None

    def assert_same_type_and_shape(values, this_key_chain=None):
        x_, y_ = values
        for x, y in zip(x_, y_):
            if isinstance(x, np.ndarray):
                x_d = str(x.dtype).replace("longlong", "int64")
                y_d = str(y.dtype).replace("longlong", "int64")
>               assert (
                    x.shape == y.shape
                ), "returned shape = {}, ground-truth returned shape = {}".format(
                    x.shape, y.shape
                )
E               AssertionError: returned shape = (1,), ground-truth returned shape = ()
E               Falsifying example: test_paddle_equal_all(
E                   frontend='paddle',
E                   on_device='cpu',
E                   dtypes_and_x=(['bool', 'bool'], [array(False), array(False)]),
E                   method_flags=FrontendMethodTestFlags(
E                       num_positional_args=0,
E                       as_variable=[False],
E                       native_arrays=[False],
E                   ),
E                   frontend_method_data=FrontendMethodData(ivy_init_module=<module 'ivy.functional.frontends.paddle' from '/workspaces/ivy/ivy/functional/frontends/paddle/__init__.py'>, framework_init_module=<module 'paddle' from '/opt/fw/paddle/paddle/__init__.py'>, init_name='to_tensor', method_name='equal_all'),
E                   init_flags=FrontendMethodTestFlags(
E                       num_positional_args=1,
E                       as_variable=[False],
E                       native_arrays=[False],
E                   ),
E               )
E               
E               You can reproduce this example by temporarily adding @reproduce_failure('6.79.2', b'AXicY2RAAAAAGAAC') as a decorator on your test case

ivy_tests/test_ivy/helpers/assertions.py:71: AssertionError
================================================================================== warnings summary ===================================================================================
ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py: 15 warnings
/opt/fw/tensorflow/tensorflow/python/framework/ops.py:1059: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    return int(self._numpy())

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=============================================================================== short test summary info ===============================================================================
FAILED ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py::test_paddle_equal_all[cpu-ivy.functional.backends.numpy-False-False] - AssertionError: returned shape = (1,), ground-truth returned shape = ()
FAILED ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py::test_paddle_equal_all[cpu-ivy.functional.backends.jax-False-False] - AssertionError: returned shape = (1,), ground-truth returned shape = ()
FAILED ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py::test_paddle_equal_all[cpu-ivy.functional.backends.tensorflow-False-False] - AssertionError: returned shape = (1,), ground-truth returned shape = ()
FAILED ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py::test_paddle_equal_all[cpu-ivy.functional.backends.torch-False-False] - AssertionError: returned shape = (1,), ground-truth returned shape = ()
FAILED ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_tensor.py::test_paddle_equal_all[cpu-ivy.functional.backends.paddle-False-False] - AssertionError: returned shape = (1,), ground-truth returned shape = ()
=========================================================================== 5 failed, 15 warnings in 11.94s ===========================================================================

KareemMAX avatar Jun 30 '23 17:06 KareemMAX

@KareemMAX thanks for your log I will take a look under the hood.

MuhammadNizamani avatar Jul 01 '23 06:07 MuhammadNizamani

@KareemMAX Now I am getting same error, could you please test equal_all function in codespace here is command for it copy and paste it python3 -m pytest -v -x ivy_tests/test_ivy/test_frontends/test_paddle/test_tensor/test_paddle_logic.py::test_paddle_equal_all

if it failed tests than I will contact haris and I will ask him how should processed.

MuhammadNizamani avatar Jul 02 '23 11:07 MuhammadNizamani

@KareemMAX now run test function i thinks there woulb no error.

MuhammadNizamani avatar Jul 03 '23 06:07 MuhammadNizamani