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 6e3c699 commit 8405149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_xla/experimental/fori_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ 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].extend(res[-1])
trynewres = res[:-1] + [res[-1]]
print("trynewres: ", trynewres)
newres = res[:-1] + list(additional_inputs) + res[-1]
print("newres: ", newres)
Expand Down

0 comments on commit 8405149

Please sign in to comment.