Skip to content

Commit

Permalink
Update fori_loop.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfeiBai authored Feb 29, 2024
1 parent cd60e59 commit 216303b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions torch_xla/experimental/fori_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ def _xla_while_loop(cond_fn, body_fn, operands):
shapes = xb.tensor_shape(operands)
builder = xb.create_builder('test_while')
params = []
# secondparams = []
for shape in shapes:
p = xb.mkparam(builder, len(params), shape)
params.append(p)
# secondparams.append(xb.Op.tuple([p]))

# generate cond_fn xlacomputation
cond_result = cond_fn(operands)
Expand Down

0 comments on commit 216303b

Please sign in to comment.