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

Method _apply_transform

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

Source from the content-addressed store, hash-verified

698
699class CosTransform(Transform):
700 def _apply_transform(self, obs: torch.Tensor) -> None:
701 return obs.cos()
702
703 # The transform must also modify the data at reset time
704 def _reset(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected