ObservationTransform¶ class torchrl.envs.transforms.ObservationTransform(in_keys: Sequence[NestedKey] | None = None, out_keys: Sequence[NestedKey] | None = None, in_keys_inv: Sequence[NestedKey] | None = None, out_keys_inv: Sequence[NestedKey] | None = None)[source]¶ 观察转换的抽象类。