find_hidden_param_op_relations_from_minfo#
- class braintrace.find_hidden_param_op_relations_from_minfo(minfo, hid_path_to_group)[source]#
Find ETP relations from a
ModuleInfo.Builds a mapping from all
brainstate.ParamStateinvars so that plainParamStateweights used with ETP primitives are recognised.- Parameters:
minfo (
ModuleInfo) – The model information.hid_path_to_group (
Dict[Tuple[str,...],HiddenGroup]) – Mapping from each hidden-state path to itsHiddenGroup.
- Returns:
The discovered ETP-primitive-to-hidden-state relations.
- Return type:
See also
find_hidden_param_op_relations_from_moduleEquivalent helper starting from a model.