Skip to content

Commit

Permalink
fixing minor issue in __bool__ method of tf tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
sherry30 committed Jul 12, 2023
1 parent 9035cc3 commit 8337a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/frontends/tensorflow/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __array__(self, dtype=None, name="array"):
return array(ivy.asarray(self.ivy_array, dtype=to_ivy_dtype(dtype)))

def __bool__(self, name="bool"):
temp = ivy.squeeze(self.ivy_array, None)
temp = ivy.squeeze(self.ivy_array, axis=None)
if temp.shape != ():
raise ValueError(
"The truth value of an array with more than one element is ambiguous. "
Expand Down

0 comments on commit 8337a32

Please sign in to comment.