@base_layer.initializer
def __init__(self, params):
    super(DepthwiseConv2DLayer, self).__init__(params)
    p = self.params
    assert p.name
    w_pc = py_utils.WeightParams(shape=p.filter_shape, init=p.params_init, dtype=p.dtype, collections=[(self.__class__.__name__ + '_vars')])
    with tf.variable_scope(p.name):
        self.CreateVariable('w', w_pc)
        if p.weight_norm:
            self.CreateVariable('g', py_utils.WeightParams(shape=[p.filter_shape[2], p.filter_shape[3]], init=py_utils.WeightInit.Constant(0.0), dtype=p.dtype, collections=[(self.__class__.__name__ + '_vars')]))
@base_layer.initializer
def __init__(self, params):
    super(DepthwiseConv2DLayer, self).__init__(params)
    p = self.params
    assert p.name
    w_pc = py_utils.WeightParams(shape=p.filter_shape, init=p.params_init, dtype=p.dtype, collections=[(self.__class__.__name__ + '_vars')])
    with tf.variable_scope(p.name):
        self.CreateVariable('w', w_pc)
        if p.weight_norm:
            self.CreateVariable('g', py_utils.WeightParams(shape=[p.filter_shape[2], p.filter_shape[3]], init=py_utils.WeightInit.Constant(0.0), dtype=p.dtype, collections=[(self.__class__.__name__ + '_vars')]))