Skip to content

Commit

Permalink
modify loop op
Browse files Browse the repository at this point in the history
  • Loading branch information
heheda12345 committed Mar 24, 2024
1 parent fcfe005 commit fb2d7ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/control_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ def forward(self, *values: Any) -> Any:
loop_carry = values[self.num_read_only_param:]
while iter_num < self.num_iter:
# and cond.item():
loop_carry = self.body(torch.tensor(iter_num), *read_only,
*loop_carry)
loop_carry = self.body(iter_num, *read_only, *loop_carry)
# cond, *loop_carry = self.body(iter_num, cond, *read_only,
# *loop_carry)
iter_num += 1
Expand Down

0 comments on commit fb2d7ba

Please sign in to comment.