Skip to content

Commit

Permalink
fix bool queries
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbarrett98 committed Mar 1, 2024
1 parent fbc86f9 commit 930d983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/backends/tensorflow/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 930d983

Please sign in to comment.