blob: e65c8cfa41643d4e3b4ddc91708d1452991e764f [file] [log] [blame]
def while_test(a: Tensor,
i: Tensor) -> Tensor:
a0, i0 = a, i
_0 = bool(torch.lt(i, 3))
while _0:
a1 = torch.mul_(a0, a0)
i1 = torch.add_(i0, 1, 1)
_0, a0, i0 = bool(torch.lt(i1, 3)), a1, i1
return a0