MCPcopy Create free account
hub / github.com/pytorch/tutorials / _reset

Method _reset

advanced_source/pendulum.py:704–707  ·  view source on GitHub ↗
(
        self, tensordict: TensorDictBase, tensordict_reset: TensorDictBase
    )

Source from the content-addressed store, hash-verified

702
703 # The transform must also modify the data at reset time
704 def _reset(
705 self, tensordict: TensorDictBase, tensordict_reset: TensorDictBase
706 ) -> TensorDictBase:
707 return self._call(tensordict_reset)
708
709 # _apply_to_composite will execute the observation spec transform across all
710 # in_keys/out_keys pairs and write the result in the observation_spec which

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected