@@ -283,12 +283,13 @@ def async_shutdown(
283283 ) -> None :
284284 """Shuts down the collector when started asynchronously with the `start` method.
285285
286- Arg :
286+ Args :
287287 timeout (float, optional): The maximum time to wait for the collector to shutdown.
288288 close_env (bool, optional): If True, the collector will close the contained environment.
289289 Defaults to `True`.
290290
291291 .. seealso:: :meth:`~.start`
292+
292293 """
293294 return self .shutdown (timeout = timeout , close_env = close_env )
294295
@@ -440,7 +441,7 @@ class SyncDataCollector(DataCollectorBase):
440441 - In all other cases an attempt to wrap it will be undergone as such: ``TensorDictModule(policy, in_keys=env_obs_key, out_keys=env.action_keys)``.
441442
442443 .. note:: If the policy needs to be passed as a policy factory (e.g., in case it mustn't be serialized /
443- pickled directly), the :arg:` policy_factory` should be used instead.
444+ pickled directly), the `` policy_factory` ` should be used instead.
444445
445446 Keyword Args:
446447 policy_factory (Callable[[], Callable], optional): a callable that returns
@@ -1784,7 +1785,7 @@ class _MultiDataCollector(DataCollectorBase):
17841785 ``TensorDictModule(policy, in_keys=env_obs_key, out_keys=env.action_keys)``.
17851786
17861787 .. note:: If the policy needs to be passed as a policy factory (e.g., in case it mustn't be serialized /
1787- pickled directly), the :arg:` policy_factory` should be used instead.
1788+ pickled directly), the `` policy_factory` ` should be used instead.
17881789
17891790 Keyword Args:
17901791 policy_factory (Callable[[], Callable], list of Callable[[], Callable], optional): a callable
@@ -2749,8 +2750,8 @@ class MultiSyncDataCollector(_MultiDataCollector):
27492750 ... if i == 2:
27502751 ... print(data)
27512752 ... break
2752- >>> collector.shutdown()
2753- >>> del collector
2753+ ... collector.shutdown()
2754+ ... del collector
27542755 TensorDict(
27552756 fields={
27562757 action: Tensor(shape=torch.Size([200, 1]), device=cpu, dtype=torch.float32, is_shared=False),
@@ -3130,8 +3131,8 @@ class MultiaSyncDataCollector(_MultiDataCollector):
31303131 ... if i == 2:
31313132 ... print(data)
31323133 ... break
3133- ... collector.shutdown()
3134- ... del collector
3134+ ... collector.shutdown()
3135+ ... del collector
31353136 TensorDict(
31363137 fields={
31373138 action: Tensor(shape=torch.Size([200, 1]), device=cpu, dtype=torch.float32, is_shared=False),
@@ -3366,7 +3367,7 @@ class aSyncDataCollector(MultiaSyncDataCollector):
33663367 - In all other cases an attempt to wrap it will be undergone as such: ``TensorDictModule(policy, in_keys=env_obs_key, out_keys=env.action_keys)``.
33673368
33683369 .. note:: If the policy needs to be passed as a policy factory (e.g., in case it mustn't be serialized /
3369- pickled directly), the :arg:` policy_factory` should be used instead.
3370+ pickled directly), the `` policy_factory` ` should be used instead.
33703371
33713372 Keyword Args:
33723373 policy_factory (Callable[[], Callable], optional): a callable that returns
@@ -3380,8 +3381,8 @@ class aSyncDataCollector(MultiaSyncDataCollector):
33803381 total number of frames returned by the collector
33813382 during its lifespan. If the ``total_frames`` is not divisible by
33823383 ``frames_per_batch``, an exception is raised.
3383- Endless collectors can be created by passing ``total_frames=-1``.
3384- Defaults to ``-1`` (never ending collector).
3384+ Endless collectors can be created by passing ``total_frames=-1``.
3385+ Defaults to ``-1`` (never ending collector).
33853386 device (int, str or torch.device, optional): The generic device of the
33863387 collector. The ``device`` args fills any non-specified device: if
33873388 ``device`` is not ``None`` and any of ``storing_device``, ``policy_device`` or
0 commit comments