(self, conv)
| 164 | return x |
| 165 | |
| 166 | def init_weight(self, conv): |
| 167 | conv_weight = conv.weight |
| 168 | nn.init.zeros_(conv_weight) |
| 169 | c1, c2, t, h, w = conv_weight.size() |
| 170 | one_matrix = torch.eye(c1, c2) |
| 171 | init_matrix = one_matrix |
| 172 | nn.init.zeros_(conv_weight) |
| 173 | #conv_weight.data[:,:,-1,1,1] = init_matrix * 0.5 |
| 174 | conv_weight.data[:, :, 1, 0, 0] = init_matrix #* 0.5 |
| 175 | conv.weight.data.copy_(conv_weight) |
| 176 | nn.init.zeros_(conv.bias.data) |
| 177 | |
| 178 | def init_weight2(self, conv): |
| 179 | conv_weight = conv.weight.data |
nothing calls this directly
no outgoing calls
no test coverage detected