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

Method transform_observation_spec

advanced_source/pendulum.py:713–720  ·  view source on GitHub ↗
(self, observation_spec)

Source from the content-addressed store, hash-verified

711 # is of type ``Composite``
712 @_apply_to_composite
713 def transform_observation_spec(self, observation_spec):
714 return BoundedTensorSpec(
715 low=-1,
716 high=1,
717 shape=observation_spec.shape,
718 dtype=observation_spec.dtype,
719 device=observation_spec.device,
720 )
721
722
723t_sin = SinTransform(in_keys=["th"], out_keys=["sin"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected