cupy
cupy copied to clipboard
Fix segfault when passing `None` to `ascontiguousarray`/`asfortranarray`
Close #9358.
/test mini
Looks good to me, seems like matmul in cupy/_core/_routines_linalg.pyx uses the cimported ascontiguousarray for dtype support (and that looks like the only occurance).
I'll wager that this function is heavy enough that switching over to Python there is OK.