-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(SD) Add benchmark option and add a printer. #773
Conversation
…neBase and components.
@@ -238,6 +243,41 @@ def __call__(self, function_name, inputs: list): | |||
return output | |||
|
|||
|
|||
class Printer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to use this instead of just import logging and use that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can set it up as a logger, I used this since we had it setup nicely for tresleches full_runner.py
@@ -456,8 +500,8 @@ def is_prepared(self, vmfbs, weights): | |||
mlir_keywords.remove(kw) | |||
avail_files = os.listdir(pipeline_dir) | |||
candidates = [] | |||
# print("MLIR KEYS: ", mlir_keywords) | |||
# print("AVAILABLE FILES: ", avail_files) | |||
# self.printer.print("MLIR KEYS: ", mlir_keywords) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented code
example verbose/benchmark run:
example quiet(default) run:
|
usage:
--benchmark=all
--benchmark=unet
--benchmark=clip,vae
--verbose