The use case is that I want to count the number of occurrences of each number from 1 to 10 in the size 25 tensor t2. It’s a bit counterintuitive to have to allocate a new tensor of 25 ones to do that, but this does work, so thanks.