visible_module_list#

class braincore.visible_module_list(seq=())#

A sequence of Module, which is compatible with vars() and nodes() operations in a Module.

That is to say, any nodes that are wrapped into NodeList will be automatically retieved when using nodes() function.

>>> import braincore as bc
>>> l = bc.visible_module_list([bp.dnn.Dense(1, 2),
>>>                     bp.dnn.LSTMCell(2, 3)])
append(element)[source]#

Append object to the end of the list.

Return type:

visible_module_list

extend(iterable)[source]#

Extend list by appending elements from the iterable.

Return type:

visible_module_list