From 92adae0ce9d52eca2e77c679d893199f353de690 Mon Sep 17 00:00:00 2001 From: AnnaTz <111577222+AnnaTz@users.noreply.github.com> Date: Wed, 18 Oct 2023 19:30:47 +0000 Subject: [PATCH] fix(ivy): Fixed tf backend's get_item.partial_mixed_handler to avoid failures in the native function. --- ivy/functional/backends/tensorflow/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy/functional/backends/tensorflow/general.py b/ivy/functional/backends/tensorflow/general.py index ed87eef9f1399..3d017fc9b01b5 100644 --- a/ivy/functional/backends/tensorflow/general.py +++ b/ivy/functional/backends/tensorflow/general.py @@ -50,7 +50,7 @@ def current_backend_str() -> str: def _check_query(query): return not isinstance(query, list) and ( - not (ivy.is_array(query) and ivy.is_bool_dtype(query) ^ bool(query.ndim > 0)) + not (ivy.is_array(query) and ivy.is_bool_dtype(query) and bool(query.ndim > 0)) )