Fixed:  segmentation fault when calling `sumduplicates` on empty tensors