(self, *kargs)
| 65 | class Embedding_Compress(nn.Embedding): |
| 66 | |
| 67 | def __init__(self, *kargs): |
| 68 | super(Embedding_Compress, self).__init__(*kargs) |
| 69 | self.weight.start_bits = None |
| 70 | self.weight.target_bits = None |
| 71 | self.weight.q_period = None |
| 72 | self.weight_quantization_enabled_in_forward = False |
| 73 | self.weight_quantization_enabled = False |
| 74 | |
| 75 | def extra_repr(self): |
| 76 | return 'num_embeddings={}, embedding_dim={}, weight_quantization={}'.format( |