Ordinary inner product of vectors for 1-D arrays (without complex conjugation), in higher dimensions a sum product over the last axes.
apply to last axis
numpy.inner — NumPy v2.1 Manual
Ordinary inner product of vectors for 1-D arrays (without complex
conjugation), in higher dimensions a sum product over the last axes.
https://numpy.org/doc/stable/reference/generated/numpy.inner.html

Seonglae Cho