def _get_submodules_to_compress(self) -> _Iterable[_Tuple[str, _torch.nn.Module]]:
        """
        Return an iterator over the names and submodules to be compressed.
        """
        for name, submodule in self._model.named_modules():
            yield name, submodule

        Return an iterator over the names and submodules to be compressed.
        
coremltools/optimize/torch/palettization/sensitive_k_means.py