in utils.py [0:0]
def shape_list(x): """ deal with dynamic shape in tensorflow cleanly """ ps = x.get_shape().as_list() ts = tf.shape(x) return [ts[i] if ps[i] is None else ps[i] for i in range(len(ps))]