Skip to content

Commit

Permalink
add flush() add appropriate places
Browse files Browse the repository at this point in the history
  • Loading branch information
sayakpaul committed Dec 4, 2023
1 parent 0f4ae4e commit de739fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmarks/base_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ def benchmark(self, args):
benchmark_info = BenchmarkInfo(time=time, memory=memory)

pipeline_class_name = str(self.pipe.__class__.__name__)
flush()
csv_dict = generate_csv_dict(
pipeline_cls=pipeline_class_name, ckpt=args.ckpt, args=args, benchmark_info=benchmark_info
)
filepath = self.get_result_filepath(args)
write_to_csv(filepath, csv_dict)
print(f"Logs written to: {filepath}")
flush()


class ImageToImageBenchmark(TextToImageBenchmark):
Expand Down

0 comments on commit de739fa

Please sign in to comment.