File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 104
104
# description and more about the algorithm itself.
105
105
#
106
106
107
- # sphinx_gallery_start_ignore
108
- import warnings
109
-
110
107
warnings .filterwarnings ("ignore" )
111
108
from torch import multiprocessing
112
109
110
+ # sphinx_gallery_start_ignore
111
+
113
112
# TorchRL prefers spawn method, that restricts creation of ``~torchrl.envs.ParallelEnv`` inside
114
113
# `__main__` method call, but for the easy of reading the code switch to fork
115
114
# which is also a default spawn method in Google's Colaboratory
139
138
from torchrl .objectives import ClipPPOLoss
140
139
from torchrl .objectives .value import GAE
141
140
from tqdm import tqdm
142
- import multiprocessing
143
141
144
142
######################################################################
145
143
# Define Hyperparameters
You can’t perform that action at this time.
0 commit comments