import tensorflow as tf

        # initialize filter
        W = tf.get_variable(
            name='W',
            shape=[filter_size, num_feature, 1, num_filter],
            initializer=tf.contrib.layers.xavier_initializer_conv2d())
        
        # convolve w and input
        conv = tf.nn.conv2d(
