(self, model, schedule="linear", **kwargs)
| 11 | |
| 12 | class PLMSSampler(object): |
| 13 | def __init__(self, model, schedule="linear", **kwargs): |
| 14 | super().__init__() |
| 15 | self.model = model |
| 16 | self.ddpm_num_timesteps = model.num_timesteps |
| 17 | self.schedule = schedule |
| 18 | |
| 19 | def register_buffer(self, name, attr): |
| 20 | if type(attr) == torch.Tensor: |
nothing calls this directly
no outgoing calls
no test coverage detected