(self, x)
| 185 | self.proj = torch.nn.Conv2d(in_chans, embed_dim, kernel_size=patch_size, stride=patch_size, bias=bias) |
| 186 | |
| 187 | def forward(self, x): |
| 188 | x = self.proj(x) |
| 189 | x = x.flatten(2).transpose(1, 2) # BCHW -> BNC |
| 190 | return x |
| 191 | |
| 192 | |
| 193 | def timestep_embedding(t, dim, max_period=10000, repeat_only=False): |
nothing calls this directly
no outgoing calls
no test coverage detected