def METHOD_NAME(self, x, output_shape):
    input_shape = x.get_shape().as_list()
    channel_in = input_shape[-1]
    channel_out = output_shape[-1]
    if channel_in != channel_out:
        return self._projection(x, channel_out)
    else:
        return x