ModuleGroup

ModuleGroup#

class braincore.ModuleGroup(*children_as_tuple, name=None, mode=None, child_type=<class 'braincore.Module'>, **children_as_dict)#

A group of Module in which the updating order does not matter.

Parameters:
  • children_as_tuple – The children objects.

  • children_as_dict – The children objects.

  • name (Optional[str]) – The object name.

  • mode (Optional[Mode]) – The mode which controls the model computation.

  • child_type (type) – The type of the children object. Default is Module.

update(*args, **kwargs)[source]#

Step function of a network.

In this update function, the update functions in children systems are iteratively called.