Skip to content

Commit 170510f

Browse files
committed
fix timing
1 parent d013dc4 commit 170510f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/flux/cli.py

+1
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def main(
215215
x = unpack(x.float(), opts.height, opts.width)
216216
with torch.autocast(device_type=torch_device.type, dtype=torch.bfloat16):
217217
x = ae.decode(x)
218+
torch.cuda.synchronize()
218219
t1 = time.perf_counter()
219220

220221
fn = output_name.format(idx=idx)

0 commit comments

Comments
 (0)