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

Method set_input_embeddings

bert/modeling_bert.py:657–658  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

655 return self.embeddings.word_embeddings
656
657 def set_input_embeddings(self, value):
658 self.embeddings.word_embeddings = value
659
660 def _prune_heads(self, heads_to_prune):
661 """ Prunes heads of the model.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected