Pytorch k means clustering