MCPcopy Create free account
hub / github.com/SooLab/CGFormer / get_output_embeddings

Method get_output_embeddings

bert/modeling_utils.py:338–346  ·  view source on GitHub ↗

Returns the model's output embeddings. Returns: :obj:`nn.Module`: A torch module mapping hidden states to vocabulary.

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 1

tie_weightsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected