MCPcopy Create free account
hub / github.com/LeCAR-Lab/SoFTA / __init__

Method __init__

humanoidverse/agents/modules/modules.py:6–14  ·  view source on GitHub ↗
(self, obs_dim_dict, module_config_dict)

Source from the content-addressed store, hash-verified

4
5class BaseModule(nn.Module):
6 def __init__(self, obs_dim_dict, module_config_dict):
7 super(BaseModule, self).__init__()
8 self.obs_dim_dict = obs_dim_dict
9 self.module_config_dict = module_config_dict
10 self.history_length = module_config_dict.get('history_length', {})
11
12 self._calculate_input_dim()
13 self._calculate_output_dim()
14 self._build_network_layer(self.module_config_dict.layer_config)
15
16 def _calculate_input_dim(self):
17 # calculate input dimension based on the input specifications

Callers

nothing calls this directly

Calls 3

_calculate_input_dimMethod · 0.95
_calculate_output_dimMethod · 0.95
_build_network_layerMethod · 0.95

Tested by

no test coverage detected