import tensorflow as tf


  with tf.variable_scope('fully_connected'):
    bottom = out
    bottom_shape = bottom.get_shape().as_list()
    reshape = tf.reshape(
        bottom,
        [-1, bottom_shape[1] * bottom_shape[2] * bottom_shape[3] * bottom_shape[4]])

