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

Method __init__

bert/modeling_bert.py:395–398  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

393
394class BertEncoder(nn.Module):
395 def __init__(self, config):
396 super().__init__()
397 self.config = config
398 self.layer = nn.ModuleList([BertLayer(config) for _ in range(config.num_hidden_layers)])
399
400 def forward(
401 self,

Callers

nothing calls this directly

Calls 2

BertLayerClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected