(self, x)
| 308 | self.register_buffer('pe', pe) |
| 309 | |
| 310 | def forward(self, x): |
| 311 | # not used in the final model |
| 312 | x = x + self.pe[:x.shape[0], :] |
| 313 | return self.dropout(x) |
| 314 | |
| 315 | |
| 316 | class TimestepEmbedder(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected