Skip to content

Commit 6424883

Browse files
mudPi314svekars
andauthored
Added necessary import multiprocessing (#2826)
* Added necessary import multiprocessing --------- Co-authored-by: Svetlana Karslioglu <[email protected]>
1 parent 9e1f001 commit 6424883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

intermediate_source/reinforcement_ppo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@
104104
# description and more about the algorithm itself.
105105
#
106106

107-
# sphinx_gallery_start_ignore
108107
import warnings
109-
110108
warnings.filterwarnings("ignore")
111109
from torch import multiprocessing
112110

111+
# sphinx_gallery_start_ignore
112+
113113
# TorchRL prefers spawn method, that restricts creation of ``~torchrl.envs.ParallelEnv`` inside
114114
# `__main__` method call, but for the easy of reading the code switch to fork
115115
# which is also a default spawn method in Google's Colaboratory

0 commit comments

Comments
 (0)