DOC: fix return shape of tensorinv doc
Merge pull request #4878 from nouiz:doc