Skip to content

Commit

Permalink
Update benchmark.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpinkney authored Jan 12, 2023
1 parent cdddab8 commit df83334
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def run_benchmark_grid(grid, n_repeats, num_inference_steps, csv_fpath):
device_desc,
precision,
use_autocast,
xformers,
backend,
n_samples,
latency,
Expand Down Expand Up @@ -290,4 +291,4 @@ def run_benchmark_grid(grid, n_repeats, num_inference_steps, csv_fpath):
# https://github.com/huggingface/diffusers/pull/440
"backend": ("pytorch", "onnx") if device.type == "cpu" else ("pytorch",),
}
run_benchmark_grid(grid, n_repeats=args.repeats, num_inference_steps=args.steps, csv_fpath=args.output_file)
run_benchmark_grid(grid, n_repeats=args.repeats, num_inference_steps=args.steps, csv_fpath=args.output_file)

0 comments on commit df83334

Please sign in to comment.