(self, num_branches, blocks, num_blocks, num_inchannels,
num_channels, fuse_method, multi_scale_output=True)
| 108 | |
| 109 | class HighResolutionModule(nn.Module): |
| 110 | def __init__(self, num_branches, blocks, num_blocks, num_inchannels, |
| 111 | num_channels, fuse_method, multi_scale_output=True): |
| 112 | super(HighResolutionModule, self).__init__() |
| 113 | self._check_branches( |
| 114 | num_branches, blocks, num_blocks, num_inchannels, num_channels) |
| 115 | |
| 116 | self.num_inchannels = num_inchannels |
| 117 | self.fuse_method = fuse_method |
| 118 | self.num_branches = num_branches |
| 119 | |
| 120 | self.multi_scale_output = multi_scale_output |
| 121 | |
| 122 | self.branches = self._make_branches( |
| 123 | num_branches, blocks, num_blocks, num_channels) |
| 124 | self.fuse_layers = self._make_fuse_layers() |
| 125 | self.relu = nn.ReLU(inplace=relu_inplace) |
| 126 | |
| 127 | def _check_branches(self, num_branches, blocks, num_blocks, |
| 128 | num_inchannels, num_channels): |
nothing calls this directly
no test coverage detected