[Tensor] Fix Tensor::getIdx() method
The getIdx() method generates segfault on 0-rank coords due to an out-of-bound access. Also the computation was wrong for rank of coords lower than rank of tensor by 2 or more.
parent
da92267d
No related branches found
No related tags found
Please register or sign in to comment