In sparse tensor initialization, fix shape inference from the index arrays
Merge pull request #1 from panisson/master

Thanks! Merging your fix into main branch.