Created
September 11, 2017 20:30
-
-
Save ikhlestov/bb6c2d3b7ae3d6a0ac8387c0ebb057f6 to your computer and use it in GitHub Desktop.
pytorch: pytorch while loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
first_counter = torch.Tensor([0]) | |
second_counter = torch.Tensor([10]) | |
some_value = torch.Tensor(15) | |
while (first_counter < second_counter)[0]: | |
first_counter += 2 | |
second_counter += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment