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

Method _apply_transform

advanced_source/pendulum.py:676–677  ·  view source on GitHub ↗
(self, obs: torch.Tensor)

Source from the content-addressed store, hash-verified

674
675class SinTransform(Transform):
676 def _apply_transform(self, obs: torch.Tensor) -> None:
677 return obs.sin()
678
679 # The transform must also modify the data at reset time
680 def _reset(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected