(self, d_model, d_ff, d_head, cond_features, dropout=0.0)
| 509 | |
| 510 | class GlobalTransformerLayer(nn.Module): |
| 511 | def __init__(self, d_model, d_ff, d_head, cond_features, dropout=0.0): |
| 512 | super().__init__() |
| 513 | self.self_attn = SelfAttentionBlock(d_model, d_head, cond_features, dropout=dropout) |
| 514 | self.ff = FeedForwardBlock(d_model, d_ff, cond_features, dropout=dropout) |
| 515 | |
| 516 | def forward(self, x, pos, cond): |
| 517 | x = checkpoint(self.self_attn, x, pos, cond) |
nothing calls this directly
no test coverage detected