Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
clemente0731 committed Jul 4, 2024
1 parent b763664 commit 8e350c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pprobe/bootstrap/hook_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def check_and_run_hook(self, module_fullname):
pass
if self.torch_dump_op_enabled:
self.run_torch_func_hook()
if self.torch_dump_aten_enabled:
# TODO
pass
if self.torch_dump_dist_enabled:
# TODO
pass
Expand All @@ -101,15 +104,12 @@ def check_and_run_hook(self, module_fullname):
if self.torch_dump_optim_enabled:
# TODO
pass
if self.torch_dump_memory_enabled:
if self.torch_catch_memory_enabled:
# TODO
pass
if self.torch_test_dump_op_enabled:
# TODO
pass
if self.torch_test_dump_aten_enabled:
# TODO
pass
if self.torch_test_dump_dist_enabled:
# TODO
pass
Expand Down
4 changes: 1 addition & 3 deletions pprobe/toggle/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ def _save_toggles_to_file(self, file_path, toggle_dict):
value_str = (
"true"
if value is True
else "false"
if value is False
else value
else "false" if value is False else value
)
file.write(f"{name}={value_str}\n")
except Exception as e:
Expand Down

0 comments on commit 8e350c3

Please sign in to comment.