(r1, r2, shape, device)
| 47 | |
| 48 | |
| 49 | def uniform_on_device(r1, r2, shape, device): |
| 50 | return (r1 - r2) * torch.rand(*shape, device=device) + r2 |
| 51 | |
| 52 | |
| 53 | class DDPM(pl.LightningModule): |
nothing calls this directly
no outgoing calls
no test coverage detected