MCPcopy
hub / github.com/deepspeedai/DeepSpeed / __init__

Method __init__

tests/unit/modeling.py:386–389  ·  view source on GitHub ↗
(self, i, config, weights, biases)

Source from the content-addressed store, hash-verified

384class BertAttention(nn.Module):
385
386 def __init__(self, i, config, weights, biases):
387 super(BertAttention, self).__init__()
388 self.self = BertSelfAttention(i, config, weights, biases)
389 self.output = BertSelfOutput(config, weights, biases)
390
391 def forward(self, input_tensor, attention_mask):
392 self_output = self.self(input_tensor, attention_mask)

Callers

nothing calls this directly

Calls 3

BertSelfAttentionClass · 0.70
BertSelfOutputClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected