Open machanic opened 5 years ago
The while True: of https://github.com/ikostrikov/pytorch-a3c/blob/master/train.py#L35 cannot be break, because the only break statement is in https://github.com/ikostrikov/pytorch-a3c/blob/master/train.py#L79 which is used to break for-loop: https://github.com/ikostrikov/pytorch-a3c/blob/master/train.py#L50 How to terminate that forever while-loop in your code?
while True:
break
The
while True:
of https://github.com/ikostrikov/pytorch-a3c/blob/master/train.py#L35 cannot be break, because the onlybreak
statement is in https://github.com/ikostrikov/pytorch-a3c/blob/master/train.py#L79 which is used to break for-loop: https://github.com/ikostrikov/pytorch-a3c/blob/master/train.py#L50 How to terminate that forever while-loop in your code?