@@ -282,12 +282,13 @@ def async_shutdown(
282282 ) -> None :
283283 """Shuts down the collector when started asynchronously with the `start` method.
284284
285- Arg :
285+ Args :
286286 timeout (float, optional): The maximum time to wait for the collector to shutdown.
287287 close_env (bool, optional): If True, the collector will close the contained environment.
288288 Defaults to `True`.
289289
290290 .. seealso:: :meth:`~.start`
291+
291292 """
292293 return self .shutdown (timeout = timeout , close_env = close_env )
293294
@@ -595,7 +596,7 @@ class SyncDataCollector(DataCollectorBase):
595596 - 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)``.
596597
597598 .. note:: If the policy needs to be passed as a policy factory (e.g., in case it mustn't be serialized /
598- pickled directly), the :arg:` policy_factory` should be used instead.
599+ pickled directly), the `` policy_factory` ` should be used instead.
599600
600601 Keyword Args:
601602 policy_factory (Callable[[], Callable], optional): a callable that returns
@@ -2082,7 +2083,7 @@ class _MultiDataCollector(DataCollectorBase):
20822083 ``TensorDictModule(policy, in_keys=env_obs_key, out_keys=env.action_keys)``.
20832084
20842085 .. note:: If the policy needs to be passed as a policy factory (e.g., in case it mustn't be serialized /
2085- pickled directly), the :arg:` policy_factory` should be used instead.
2086+ pickled directly), the `` policy_factory` ` should be used instead.
20862087
20872088 Keyword Args:
20882089 policy_factory (Callable[[], Callable], list of Callable[[], Callable], optional): a callable
@@ -3278,8 +3279,8 @@ class MultiSyncDataCollector(_MultiDataCollector):
32783279 ... if i == 2:
32793280 ... print(data)
32803281 ... break
3281- >>> collector.shutdown()
3282- >>> del collector
3282+ ... collector.shutdown()
3283+ ... del collector
32833284 TensorDict(
32843285 fields={
32853286 action: Tensor(shape=torch.Size([200, 1]), device=cpu, dtype=torch.float32, is_shared=False),
@@ -3665,8 +3666,8 @@ class MultiaSyncDataCollector(_MultiDataCollector):
36653666 ... if i == 2:
36663667 ... print(data)
36673668 ... break
3668- ... collector.shutdown()
3669- ... del collector
3669+ ... collector.shutdown()
3670+ ... del collector
36703671 TensorDict(
36713672 fields={
36723673 action: Tensor(shape=torch.Size([200, 1]), device=cpu, dtype=torch.float32, is_shared=False),
@@ -3901,7 +3902,7 @@ class aSyncDataCollector(MultiaSyncDataCollector):
39013902 - 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)``.
39023903
39033904 .. note:: If the policy needs to be passed as a policy factory (e.g., in case it mustn't be serialized /
3904- pickled directly), the :arg:` policy_factory` should be used instead.
3905+ pickled directly), the `` policy_factory` ` should be used instead.
39053906
39063907 Keyword Args:
39073908 policy_factory (Callable[[], Callable], optional): a callable that returns
@@ -3915,8 +3916,8 @@ class aSyncDataCollector(MultiaSyncDataCollector):
39153916 total number of frames returned by the collector
39163917 during its lifespan. If the ``total_frames`` is not divisible by
39173918 ``frames_per_batch``, an exception is raised.
3918- Endless collectors can be created by passing ``total_frames=-1``.
3919- Defaults to ``-1`` (never ending collector).
3919+ Endless collectors can be created by passing ``total_frames=-1``.
3920+ Defaults to ``-1`` (never ending collector).
39203921 device (int, str or torch.device, optional): The generic device of the
39213922 collector. The ``device`` args fills any non-specified device: if
39223923 ``device`` is not ``None`` and any of ``storing_device``, ``policy_device`` or
0 commit comments