(self, x_t, t, pred_xstart)
| 285 | ) |
| 286 | |
| 287 | def predict_eps_from_xstart(self, x_t, t, pred_xstart): |
| 288 | return ( |
| 289 | extract_into_tensor(self.sqrt_recip_alphas_cumprod, t, x_t.shape) * x_t |
| 290 | - pred_xstart |
| 291 | ) / extract_into_tensor(self.sqrt_recipm1_alphas_cumprod, t, x_t.shape) |
| 292 | |
| 293 | def q_posterior(self, x_start, x_t, t): |
| 294 | """ |
no test coverage detected