MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / _get_clones

Function _get_clones

detrsmpl/core/post_processing/speed_up/deciwatch.py:687–688  ·  view source on GitHub ↗
(module, N)

Source from the content-addressed store, hash-verified

685
686
687def _get_clones(module, N):
688 return nn.ModuleList([copy.deepcopy(module) for i in range(N)])
689
690
691def build_model(args):

Callers 3

__init__Method · 0.70
__init__Method · 0.70
_init_layersMethod · 0.50

Calls 1

deepcopyMethod · 0.80

Tested by

no test coverage detected