MCPcopy Create free account
hub / github.com/amazon-science/mm-cot / _make_branches

Method _make_branches

timm/models/hrnet.py:435–440  ·  view source on GitHub ↗
(self, num_branches, block, num_blocks, num_channels)

Source from the content-addressed store, hash-verified

433 return nn.Sequential(*layers)
434
435 def _make_branches(self, num_branches, block, num_blocks, num_channels):
436 branches = []
437 for i in range(num_branches):
438 branches.append(self._make_one_branch(i, block, num_blocks, num_channels))
439
440 return nn.ModuleList(branches)
441
442 def _make_fuse_layers(self):
443 if self.num_branches == 1:

Callers 1

__init__Method · 0.95

Calls 1

_make_one_branchMethod · 0.95

Tested by

no test coverage detected