diff --git a/ivy/functional/backends/tensorflow/general.py b/ivy/functional/backends/tensorflow/general.py index 68bf1ef3b7701..3cf6cf40b95f1 100644 --- a/ivy/functional/backends/tensorflow/general.py +++ b/ivy/functional/backends/tensorflow/general.py @@ -65,7 +65,7 @@ def get_item( if ivy.is_array(query) and ivy.is_bool_dtype(query): if not len(query.shape): return tf.expand_dims(x, 0) - if ivy.is_array(query): + if ivy.is_array(query) and not ivy.is_bool_dtype(query): return tf.gather(x, query) return x.__getitem__(query)