Skip to content

Commit 5dfd685

Browse files
committed
remove pin_memory
1 parent 31de752 commit 5dfd685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/advanced_diffusion_training/train_dreambooth_lora_flux_advanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ def compute_text_embeddings(prompt, text_encoders, tokenizers):
19881988
for batch in tqdm(train_dataloader, desc="Caching latents"):
19891989
with torch.no_grad():
19901990
batch["pixel_values"] = batch["pixel_values"].to(
1991-
accelerator.device, non_blocking=True, dtype=weight_dtype, pin_memory=True
1991+
accelerator.device, non_blocking=True, dtype=weight_dtype
19921992
)
19931993
latents_cache.append(vae.encode(batch["pixel_values"]).latent_dist)
19941994

0 commit comments

Comments
 (0)