import tensorflow as tf

            in_shape = input_tensor.get_shape().as_list()
            in_channel = in_shape[3]
            padding = padding.upper()

            depthwise_filter_shape = [kernel_size, kernel_size] + [in_channel, depth_multiplier]
            w_init = tf.contrib.layers.variance_scaling_initializer()

            depthwise_filter = tf.get_variable(
                name='depthwise_filter_w', shape=depthwise_filter_shape,
                initializer=w_init
            )

            result = tf.nn.depthwise_conv2d(
                input=input_tensor,
