(module, N, layer_share=False)
| 116 | |
| 117 | |
| 118 | def _get_clones(module, N, layer_share=False): |
| 119 | |
| 120 | if layer_share: |
| 121 | return nn.ModuleList([module for i in range(N)]) |
| 122 | else: |
| 123 | return nn.ModuleList([copy.deepcopy(module) for i in range(N)]) |
nothing calls this directly
no outgoing calls
no test coverage detected