Base class for the output of a scheduler's `step` function. Args: prev_sample (`torch.Tensor` of shape `(batch_size, num_channels, height, width)` for images): Computed sample `(x_{t-1})` of previous timestep. `prev_sample` should be used as next model input in the
| 59 | |
| 60 | @dataclass |
| 61 | class SchedulerOutput(BaseOutput): |
| 62 | """ |
| 63 | Base class for the output of a scheduler's `step` function. |
| 64 | |
| 65 | Args: |
| 66 | prev_sample (`torch.Tensor` of shape `(batch_size, num_channels, height, width)` for images): |
| 67 | Computed sample `(x_{t-1})` of previous timestep. `prev_sample` should be used as next model input in the |
| 68 | denoising loop. |
| 69 | """ |
| 70 | |
| 71 | prev_sample: torch.Tensor |
| 72 | |
| 73 | |
| 74 | class SchedulerMixin(PushToHubMixin): |