MCPcopy Create free account
hub / github.com/LiteSSLHub/DisCo / BertModel

Class BertModel

src/pytorch_pretrained_bert/modeling.py:619–704  ·  view source on GitHub ↗

BERT model ("Bidirectional Embedding Representations from a Transformer"). Params: config: a BertConfig class instance with the configuration to build a new model Inputs: `input_ids`: a torch.LongTensor of shape [batch_size, sequence_length] with the word token

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

__init__Method · 0.90
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected