def METHOD_NAME(self):
    s = "{num_embeddings}, {embedding_dim}"
    if self.padding_idx is not None:
        s += ", padding_idx={padding_idx}"
    if self.max_norm is not None:
        s += ", max_norm={max_norm}"
    if self.norm_type != 2:
        s += ", norm_type={norm_type}"
    if self.scale_grad_by_freq is not False:
        s += ", scale_grad_by_freq={scale_grad_by_freq}"
    if self.sparse is not False:
        s += ", sparse=True"
    s += "quant_noise={p}, bits={bits}, method={method}"
    return s.format(**self.__dict__)