Sign in
android
/
platform
/
external
/
pytorch
/
2c91e13afc6edcfe0a0e6189a88aae4ecbbf3516
/
.
/
test
/
expect
/
TestJit.test_pretty_printer-while_test.expect
blob: 4fb5b8d1d25e15291070ed99065e9bdb5e5b989c [
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
)
_0
,
a0
,
i0
=
bool
(
torch
.
lt
(
i1
,
3
)),
a1
,
i1
return
a0