MCPcopy Create free account
hub / github.com/LeCAR-Lab/BFM-Zero / build

Method build

humanoidverse/agents/normalizers.py:48–52  ·  view source on GitHub ↗
(self, obs_space: spaces.Space)

Source from the content-addressed store, hash-verified

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
55class ObsNormalizer(nn.Module):

Callers 1

__init__Method · 0.45

Calls 1

ObsNormalizerClass · 0.85

Tested by

no test coverage detected