def reinitialize(self, link: L.Convolution2D): out_channels, in_channels = link.W.shape[:2] link.out_channels = out_channels link._initialize_params(in_channels)
def update_attributes(self, conv: L.Convolution2D): conv.out_channels = conv.W.shape[0]
def reinitialize(self, link: L.Convolution2D): out_channels, in_channels = link.W.shape[:2] link.out_channels = out_channels link._initialize_params(in_channels)
def update_attributes(self, conv: L.Convolution2D): conv.out_channels = conv.W.shape[0]