| 483 | |
| 484 | |
| 485 | class Timestep(nn.Module): |
| 486 | def __init__(self, dim): |
| 487 | super().__init__() |
| 488 | self.dim = dim |
| 489 | |
| 490 | def forward(self, t): |
| 491 | return timestep_embedding(t, self.dim) |
| 492 | |
| 493 | |
| 494 | str_to_dtype = {"fp32": th.float32, "fp16": th.float16, "bf16": th.bfloat16} |
no outgoing calls
no test coverage detected