(self, conv)
| 175 | return x |
| 176 | |
| 177 | def init_weight(self, conv): |
| 178 | conv_weight = conv.weight |
| 179 | nn.init.zeros_(conv_weight) |
| 180 | c1, c2, t, h, w = conv_weight.size() |
| 181 | one_matrix = torch.eye(c1, c2) |
| 182 | init_matrix = one_matrix |
| 183 | nn.init.zeros_(conv_weight) |
| 184 | conv_weight.data[:, :, 1, 0, 0] = init_matrix |
| 185 | conv.weight.data.copy_(conv_weight) |
| 186 | nn.init.zeros_(conv.bias.data) |
| 187 | |
| 188 | def init_weight2(self, conv): |
| 189 | conv_weight = conv.weight.data |
nothing calls this directly
no outgoing calls
no test coverage detected