MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / _spec_from_observation

Function _spec_from_observation

dm_control/rl/control.py:197–201  ·  view source on GitHub ↗
(observation)

Source from the content-addressed store, hash-verified

195
196
197def _spec_from_observation(observation):
198 result = collections.OrderedDict()
199 for key, value in observation.items():
200 result[key] = specs.Array(value.shape, value.dtype, name=key)
201 return result
202
203# Base class definitions for objects supplied to Environment.
204

Callers 1

observation_specMethod · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…