def tvm_to_primitive(expr):
    """Converts tvm data types into standard primitives

    Parameters
    ----------
    expr : tvm.expr or any type


    Returns
    -------
    primitive
    """
    if not isinstance(expr,int):
        return expr.value
    else:
        return expr