Optional method that returns the observation spec. If not implemented, the Environment infers the spec from the observation. Args: physics: Instance of `Physics`. Returns: A dict mapping observation name to `ArraySpec` containing observation shape and dtype.
(self, physics)
| 357 | """If the episode should end, returns a final discount, otherwise None.""" |
| 358 | |
| 359 | def observation_spec(self, physics): |
| 360 | """Optional method that returns the observation spec. |
| 361 | |
| 362 | If not implemented, the Environment infers the spec from the observation. |
| 363 | |
| 364 | Args: |
| 365 | physics: Instance of `Physics`. |
| 366 | |
| 367 | Returns: |
| 368 | A dict mapping observation name to `ArraySpec` containing observation |
| 369 | shape and dtype. |
| 370 | """ |
| 371 | raise NotImplementedError() |
| 372 | |
| 373 | |
| 374 | def flatten_observation(observation, output_key=FLAT_OBSERVATION_KEY): |
no outgoing calls