mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57498 Test Plan: Imported from OSS Reviewed By: albanD Differential Revision: D28162448 Pulled By: tugsbayasgalan fbshipit-source-id: 5c21ced42a22aca7cee089e876e9d98d32f68955
11 lines
247 B
Plaintext
11 lines
247 B
Plaintext
def loop_use_test(y: Tensor) -> Tuple[Tensor, Tensor]:
|
|
x = torch.add(y, 1)
|
|
z = torch.add(x, 5)
|
|
z0 = z
|
|
y0 = y
|
|
_0 = bool(torch.lt(y, 8))
|
|
while _0:
|
|
y1 = torch.add_(y0, 1)
|
|
_0, z0, y0 = bool(torch.lt(y1, 8)), x, y1
|
|
return (x, z0)
|