MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / TCDSchedulerOutput

Class TCDSchedulerOutput

diffusers/src/diffusers/schedulers/scheduling_tcd.py:35–48  ·  view source on GitHub ↗

Output class for the scheduler's `step` function output. 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

Source from the content-addressed store, hash-verified

33
34@dataclass
35class TCDSchedulerOutput(BaseOutput):
36 """
37 Output class for the scheduler's `step` function output.
38
39 Args:
40 prev_sample (`torch.Tensor` of shape `(batch_size, num_channels, height, width)` for images):
41 Computed sample `(x_{t-1})` of previous timestep. `prev_sample` should be used as next model input in the
42 denoising loop.
43 pred_noised_sample (`torch.Tensor` of shape `(batch_size, num_channels, height, width)` for images):
44 The predicted noised sample `(x_{s})` based on the model output from the current timestep.
45 """
46
47 prev_sample: torch.Tensor
48 pred_noised_sample: Optional[torch.Tensor] = None
49
50
51# Copied from diffusers.schedulers.scheduling_ddpm.betas_for_alpha_bar

Callers 1

stepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected