Spaces:
Runtime error
Runtime error
Commit
·
bbbbd95
1
Parent(s):
b97e44f
update
Browse files- tokenflow_pnp.py +1 -1
tokenflow_pnp.py
CHANGED
@@ -275,7 +275,7 @@ class TokenFlow(nn.Module):
|
|
275 |
denoised_latent = self.scheduler.step(noise_pred, t, x)['prev_sample']
|
276 |
return denoised_latent
|
277 |
|
278 |
-
@torch.autocast(dtype=
|
279 |
def batched_denoise_step(self, x, t, indices):
|
280 |
batch_size = self.config["batch_size"]
|
281 |
denoised_latents = []
|
|
|
275 |
denoised_latent = self.scheduler.step(noise_pred, t, x)['prev_sample']
|
276 |
return denoised_latent
|
277 |
|
278 |
+
@torch.autocast(dtype=to, device_type=device)
|
279 |
def batched_denoise_step(self, x, t, indices):
|
280 |
batch_size = self.config["batch_size"]
|
281 |
denoised_latents = []
|