(cls)
| 922 | """LM head layer for decoder to compute logits.""" |
| 923 | |
| 924 | @config_class |
| 925 | class Config(BaseLayer.Config): |
| 926 | vocab_size: Required[int] = REQUIRED # Size of the LM vocabulary. |
| 927 | # TODO(markblee): Rename this to input_dim. |
| 928 | embedding_dim: Required[int] = REQUIRED # Dimensionality of vocabulary embedding table. |
| 929 | |
| 930 | @classmethod |