After a long time, inner1d was deprecated and removed. But Numpy 2.0 came with vecdot. This is the speed comparison, following Nico Schlömer's answer.
inner1d
vecdot