(self, obs_space: spaces.Space)
| 46 | allow_mismatching_keys: bool = False |
| 47 | |
| 48 | def build(self, obs_space: spaces.Space) -> "ObsNormalizer": |
| 49 | # Checking this sanity here so that imports work |
| 50 | if isinstance(self.normalizers, dict) and len(self.normalizers) == 0: |
| 51 | raise ValueError("ObsNormalizerConfig was initialized with no normalizers. Please provide at least one normalizer.") |
| 52 | return ObsNormalizer(obs_space, self) |
| 53 | |
| 54 | |
| 55 | class ObsNormalizer(nn.Module): |