[chore] refactor profiler utils

This commit is contained in:
hxwang
2024-05-28 12:41:42 +00:00
parent 8547562884
commit 154720ba6e
4 changed files with 5 additions and 19 deletions

View File

@@ -47,8 +47,8 @@ def get_profile_context(enable_flag, warmup_steps, active_steps, save_dir):
activities=[ProfilerActivity.CPU, ProfilerActivity.CUDA],
schedule=schedule(wait=0, warmup=warmup_steps, active=active_steps),
on_trace_ready=tensorboard_trace_handler(save_dir),
# record_shapes=True,
# profile_memory=True,
record_shapes=True,
profile_memory=True,
with_stack=True,
)
else: