Sign in
android
/
platform
/
external
/
pytorch
/
ee2bc13f44
/
.
/
test
/
expect
/
TestJit.test_pretty_printer-while_test.expect
blob: e5297a3233244d3b6f3b6a0bff71d46e8e4d708d [
file
] [
log
] [
blame
]
def
while_test
(
a
:
Tensor
,
i
:
Tensor
)
->
Tensor
:
a0
=
a
i0
=
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