Consistent Assignment for Representation Learning