(_, expr)
return cupy_contract
Build a cupy function based on ``arrays`` and ``expr``.
Build a cupy function based on ``arrays`` and ``expr``.
Build a cupy function based on arrays and expr .
def build_expression(_, expr):  # pragma: no cover
    """Build a cupy function based on ``arrays`` and ``expr``."""

    def cupy_contract(*arrays):
        return expr._contract([to_cupy(x) for x in arrays], backend="cupy").get()

    return cupy_contract
def build_expression ( _ , expr ) : # pragma: no cover def cupy_contract ( * arrays ) : return expr . _contract ( [ to_cupy ( x ) for x in arrays ] , backend = "cupy" ) . get ( ) return cupy_contract