MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / _make_branches

Method _make_branches

segmentation/backbones/hrnet.py:115–123  ·  view source on GitHub ↗

Build multiple branch.

(self, num_branches, block, num_blocks, num_channels)

Source from the content-addressed store, hash-verified

113 return Sequential(*layers)
114
115 def _make_branches(self, num_branches, block, num_blocks, num_channels):
116 """Build multiple branch."""
117 branches = []
118
119 for i in range(num_branches):
120 branches.append(
121 self._make_one_branch(i, block, num_blocks, num_channels))
122
123 return ModuleList(branches)
124
125 def _make_fuse_layers(self):
126 """Build fuse layer."""

Callers 1

__init__Method · 0.95

Calls 1

_make_one_branchMethod · 0.95

Tested by

no test coverage detected