Skip to content

Commit 1b1bfc1

Browse files
committed
cleanup more typos
1 parent d48f073 commit 1b1bfc1

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

en-wordlist.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ Numpy's
113113
ONNX
114114
OpenAI
115115
OpenMP
116+
Ornstein
117+
OU
116118
PIL
117119
PPO
118120
Plotly
@@ -155,6 +157,7 @@ TorchRL's
155157
TorchScript
156158
TorchX
157159
Tunable
160+
Uhlenbeck
158161
UI
159162
Unescape
160163
VGG
@@ -350,6 +353,7 @@ resnet
350353
restride
351354
rewinded
352355
rollout
356+
rollouts
353357
romanized
354358
runnable
355359
runtime

intermediate_source/coding_ddpg.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
import tqdm
7171

7272
import torch.multiprocessing
73-
torch.multiprocessing.set_start_method('spawn')
7473

7574
###############################################################################
7675
# We will execute the policy on CUDA if available
@@ -766,7 +765,7 @@ def make_ddpg_actor(
766765
module=q_net,
767766
).to(device)
768767

769-
# init lazy moduless
768+
# initialize lazy modules
770769
qnet(actor(proof_environment.reset()))
771770
return actor, qnet
772771

@@ -781,7 +780,7 @@ def make_ddpg_actor(
781780
# ~~~~~~~~~~~
782781
#
783782
# The policy is wrapped in a :class:`~torchrl.modules.OrnsteinUhlenbeckProcessWrapper`
784-
# exploration module, as suggesed in the original paper.
783+
# exploration module, as suggested in the original paper.
785784
# Let's define the number of frames before OU noise reaches its minimum value
786785
annealing_frames = 1_000_000
787786

@@ -808,7 +807,7 @@ def make_ddpg_actor(
808807
#
809808
# Here we will use
810809
# :class:`~torchrl.collectors.MultiaSyncDataCollector`, a data collector that
811-
# will be executed in an async manner (i.e. data will be collected while
810+
# will be executed in an asynchronous manner (for example, data will be collected while
812811
# the policy is being optimized). With the :class:`MultiaSyncDataCollector`,
813812
# multiple workers are running rollouts separately. When a batch is asked, it
814813
# is gathered from the first worker that can provide it.
@@ -962,7 +961,7 @@ def make_replay_buffer(buffer_size, batch_size, random_crop_len, prefetch=3, prb
962961

963962

964963
###############################################################################
965-
# We'll store the replay buffer in a temporary dirrectory on disk
964+
# We'll store the replay buffer in a temporary directory on disk
966965

967966
import tempfile
968967

0 commit comments

Comments
 (0)