MCPcopy Create free account
hub / github.com/apple/ml-pointersect / _get_clones

Function _get_clones

pointersect/models/network_transformer.py:230–231  ·  view source on GitHub ↗
(module, N)

Source from the content-addressed store, hash-verified

228
229
230def _get_clones(module, N):
231 return ModuleList([copy.deepcopy(module) for i in range(N)])
232
233
234def _get_activation_fn(activation):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected