Skip to content

Commit fc6afea

Browse files
spell check
1 parent b174811 commit fc6afea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: advanced_source/pendulum.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ def angle_normalize(x):
293293

294294
def _reset(self, tensordict):
295295
if tensordict is None or tensordict.is_empty():
296-
# if no tensordict is passed, we generate a single set of hyperparameters
297-
# Otherwise, we assume that the input tensordict contains all the relevant
296+
# if no ``tensordict`` is passed, we generate a single set of hyperparameters
297+
# Otherwise, we assume that the input ``tensordict`` contains all the relevant
298298
# parameters to get started.
299299
tensordict = self.gen_params(batch_size=self.batch_size)
300300

@@ -303,7 +303,7 @@ def _reset(self, tensordict):
303303
low_th = -high_th
304304
low_thdot = -high_thdot
305305

306-
# for non batch-locked envs, the input ``tensordict`` shape dictates the number
306+
# for non batch-locked environments, the input ``tensordict`` shape dictates the number
307307
# of simulators run simultaneously. In other contexts, the initial
308308
# random state's shape will depend upon the environment batch-size instead.
309309
th = (

0 commit comments

Comments
 (0)