Returns the model's output embeddings. Returns: :obj:`nn.Module`: A torch module mapping hidden states to vocabulary.
(self)
| 336 | raise NotImplementedError |
| 337 | |
| 338 | def get_output_embeddings(self): |
| 339 | """ |
| 340 | Returns the model's output embeddings. |
| 341 | |
| 342 | Returns: |
| 343 | :obj:`nn.Module`: |
| 344 | A torch module mapping hidden states to vocabulary. |
| 345 | """ |
| 346 | return None # Overwrite for models with output embeddings |
| 347 | |
| 348 | def tie_weights(self): |
| 349 | """ |