Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfeiBai committed Apr 18, 2024
1 parent 84be568 commit e5e9c6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torch_xla/experimental/fori_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def _xla_while_loop(cond_fn, body_fn, carried_inputs, additional_inputs=None):
body_hlo = body_ctx.hlo()
body_computation = xb.computation_from_module_proto("bodycomputation",
body_hlo)
body_hlo_print = xb.get_computation_hlo(body_computation)
print("body computation: !!!!!!!!!")
print(body_hlo_print)

# trans fake_carried_inputs from list(tensor) to list(xla::op), which part could change init of xla::while
total_inputs = carried_inputs + additional_inputs
Expand Down

0 comments on commit e5e9c6e

Please sign in to comment.