Skip to content

Commit

Permalink
Fix module converter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hmahmood24 committed Oct 21, 2023
1 parent a76e213 commit 007a7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/ivy/gradients.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def _get_required_float_variables(xs, xs_grad_idxs):
Also, returns a list of duplicate index chains for the nested
structure.
"""
if (ivy.is_ivy_container(xs) or ivy.is_array(xs)) and xs_grad_idxs == [[0]]:
if (ivy.is_ivy_container(xs) or ivy.is_array(xs)) and xs_grad_idxs == ((0,),):
xs_grad_idxs = None
duplicate_index_chains = _get_duplicate_index_chains(xs)
xs = _to_ivy(xs)
Expand Down

0 comments on commit 007a7fc

Please sign in to comment.