(x, shape)
return [xs[:, step, :] for step in range(steps)]
Convert a (feature_size, steps * batch_size) array
    into a [(feature_size, batch_size)] * steps list of views.
Convert a (feature_size, steps * batch_size) array
    into a [(feature_size, batch_size)] * steps list of views.
Convert a ( feature_size steps * batch_size ) array into a [ ( feature_size batch_size ) ] * steps list of views .
def get_steps(x, shape):
    """
    Convert a (feature_size, steps * batch_size) array
    into a [(feature_size, batch_size)] * steps list of views.
    """
    steps = shape[1]
    if x is None:
        return [None for step in range(steps)]

    xs = x.reshape(shape + (-1,))
    return [xs[:, step, :] for step in range(steps)]
def get_steps ( x , shape ) : steps = shape [ 1 ] if x is None : return [ None for step in range ( steps ) ] xs = x . reshape ( shape + ( - 1 , ) ) return [ xs [ : , step , : ] for step in range ( steps ) ]