import tensorflow as tf

    # combine all pooled outputs
    total_filters = num_filter * len(filter_list)
    # concat all the pooled weights
    H_pool = tf.concat(pooled_outputs, 3)
    #flatten it for fully connected layer
    H_pool_flat = tf.reshape(H_pool, [-1, total_filters])

with tf.name_scope("dropout"):
    H_drop = tf.nn.dropout(H_pool_flat, keep_prob = keep_prob)

# Final (unnormalized) layer
with tf.name_scope("output"):
    W = tf.get_variable("W",
        shape=[total_filters, nb_classes],
