    def _upsampling_block(self, input_layer):
        """ Upsampling block for old weights. """
        
        x = Conv2D(
            self.c_dim * self.scale ** 2,
            kernel_size=3,
            padding='same',
            name='UPN3',
            kernel_initializer=self.initializer,
        )(input_layer)
        return UpSampling2D(size=self.scale, name='UPsample')(x)
Upsampling block for old weights.
ISR/models/rdn.py