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

Method __init__

ram/models/bert.py:462–466  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

460
461class BertEncoder(nn.Module):
462 def __init__(self, config):
463 super().__init__()
464 self.config = config
465 self.layer = nn.ModuleList([BertLayer(config,i) for i in range(config.num_hidden_layers)])
466 self.gradient_checkpointing = False
467
468 def forward(
469 self,

Callers

nothing calls this directly

Calls 2

BertLayerClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected