Skip to content

Commit 05e47c3

Browse files
authored
fixing dtype in flux eval (#1388)
passing dtype argument to preprocess_data in generate_image
1 parent cbccb38 commit 05e47c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtitan/experiments/flux/sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def generate_image(
101101

102102
batch = preprocess_data(
103103
device=device,
104-
dtype=torch.bfloat16,
104+
dtype=dtype,
105105
autoencoder=None,
106106
clip_encoder=clip_encoder,
107107
t5_encoder=t5_encoder,

0 commit comments

Comments
 (0)