Skip to content

Commit

Permalink
down into cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfeiBai committed Apr 24, 2024
1 parent 15ec185 commit 31afff5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torch_xla/experimental/fori_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def new_body_fn(*carried_inputs):
# return list(body_fn(*carried_inputs)).extend(additional_inputs)
res = list(body_fn(*carried_inputs))
print("res: ", res)
trynewres = res[:-1] + res[-1]
print("trynewres: ", trynewres)
newres = res[:-1] + list(additional_inputs) + res[-1]
print("newres: ", newres)
res.insert(-2, *additional_inputs)
Expand Down

0 comments on commit 31afff5

Please sign in to comment.