def tensorshape_to_intlist(tensorshape):
    """
    TensorFlow has its own wrapper for shapes because some could be None. This function turns them into int-lists. None will become a 1.
    
    Arguments
    ---------
    tensorshape : tf.TensorShape
    
    Return
    ------
    output : list
        list of ints corresponding to tensorshape
    """
    return list(map(lambda j: 1 if j.value is None else int(j), tensorshape))