def get_palettizable_parameters(cls, module: _nn.Module) -> _List[_Tuple[_torch.Tensor, str]]:
        """
        Return a list of parameters of the module which can be palettized
        """
        assert hasattr(module, "weight"), (
            f"No parameter named weight in {type(module)}. Override this method "
            f"to return parameters which can be palettized."
        )
        return [(module.weight, "weight")]

        Return a list of parameters of the module which can be palettized
        
coremltools/optimize/torch/palettization/_supported_modules.py