(self, x)
| 246 | # self.register_buffer('pe', pe) |
| 247 | |
| 248 | def forward(self, x): |
| 249 | return x + self.pe[:, :, 0:x.shape[2]] |
| 250 | |
| 251 | class Encoder(nn.Module): |
| 252 | def __init__(self, num_layers, r1, r2, num_f_maps, input_dim, num_classes, channel_masking_rate, att_type, alpha): |
nothing calls this directly
no outgoing calls
no test coverage detected