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

Method transform_observation_spec

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

Source from the content-addressed store, hash-verified

687 # is of type ``Composite``
688 @_apply_to_composite
689 def transform_observation_spec(self, observation_spec):
690 return BoundedTensorSpec(
691 low=-1,
692 high=1,
693 shape=observation_spec.shape,
694 dtype=observation_spec.dtype,
695 device=observation_spec.device,
696 )
697
698
699class CosTransform(Transform):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected