Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfeiBai committed Apr 10, 2024
1 parent 248f27b commit bc2e035
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_xla/experimental/fori_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def fori_loop(one_value, lower, upper, body_fun, init_val, *input_value): #, wei
# b=fake_carried_inputs[-3],
# c=fake_carried_inputs[-2],
# output_value=fake_carried_inputs[-1]
def cond_fn(lower, upper, one_value, x, bias_0, weight_0, *input_value, output_value):
def cond_fn(lower, upper, one_value, x, bias_0, weight_0, output_value, *input_value):
return lower[0] <= upper[0]

# one_value, init_val, l_in_i
Expand All @@ -57,7 +57,7 @@ def cond_fn(lower, upper, one_value, x, bias_0, weight_0, *input_value, output_v
# s32[1]
# s32[1], s32[1], s32[1], s32[1], f32[20], f32[20,10], f32[10], f32[20]))
# def body_fn(upper, lower, x, *input_value, a, b, c, output_value):
def body_fn(one_value, lower, upper, x, bias_0, weight_0, *input_value, output_value):
def body_fn(one_value, lower, upper, x, bias_0, weight_0, output_value, *input_value):
# one_value, upper, lower, x_i, bias, weight, l_in_i
# init_one_value = torch.ones(1, dtype=torch.int32, device=device)

Expand Down

0 comments on commit bc2e035

Please sign in to comment.