MCPcopy Create free account
hub / github.com/csslc/PiSA-SR / __init__

Method __init__

ram/models/bert_lora.py:467–471  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

465
466class BertEncoder(nn.Module):
467 def __init__(self, config):
468 super().__init__()
469 self.config = config
470 self.layer = nn.ModuleList([BertLayer(config,i) for i in range(config.num_hidden_layers)])
471 self.gradient_checkpointing = False
472
473 def forward(
474 self,

Callers

nothing calls this directly

Calls 2

BertLayerClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected