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

Method _reset

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

Source from the content-addressed store, hash-verified

678
679 # The transform must also modify the data at reset time
680 def _reset(
681 self, tensordict: TensorDictBase, tensordict_reset: TensorDictBase
682 ) -> TensorDictBase:
683 return self._call(tensordict_reset)
684
685 # _apply_to_composite will execute the observation spec transform across all
686 # 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