Skip to content

Commit

Permalink
fix: Fixed passing of missing ret_idxs argument in `_rebuild_flatte…
Browse files Browse the repository at this point in the history
…ned_containers()` function call (ivy-llc#27822)
  • Loading branch information
Sai-Suraj-27 authored Jan 3, 2024
1 parent 086445a commit ef2c6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/backends/mxnet/experimental/gradients.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def vjpfun(x_in):
)

return _rebuild_flattened_containers(
ivy.to_ivy(grads, nested=True, include_derived=True)
ivy.to_ivy(grads, nested=True, include_derived=True), ret_idxs
)

return (ivy.to_ivy(primals_out, nested=True, include_derived=True), vjpfun)
Expand Down

0 comments on commit ef2c6d0

Please sign in to comment.