Skip to content

Commit

Permalink
fix timing
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Movva committed Sep 9, 2024
1 parent d013dc4 commit 170510f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flux/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def main(
x = unpack(x.float(), opts.height, opts.width)
with torch.autocast(device_type=torch_device.type, dtype=torch.bfloat16):
x = ae.decode(x)
torch.cuda.synchronize()
t1 = time.perf_counter()

fn = output_name.format(idx=idx)
Expand Down

0 comments on commit 170510f

Please sign in to comment.