MCPcopy Create free account
hub / github.com/Hzfinfdu/Diffusion-BERT / __init__

Method __init__

models/modeling_bert.py:555–559  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

553
554class BertEncoder(nn.Module):
555 def __init__(self, config):
556 super().__init__()
557 self.config = config
558 self.layer = nn.ModuleList([BertLayer(config) for _ in range(config.num_hidden_layers)])
559 self.gradient_checkpointing = False
560
561 def forward(
562 self,

Callers

nothing calls this directly

Calls 2

BertLayerClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected