Skip to content

Commit

Permalink
comment debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwa committed Aug 30, 2023
1 parent 5e8330a commit 57300d9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ def forward(ctx, run_ctx: RuntimeStates, *input_tensor_list: Tuple[torch.Tensor,
ctx.current_step = run_ctx.global_states.execution_step
ctx.run_ctx = run_ctx

if ctx.current_step >= 0:
print(f"{'='*6} Completed forward pass for STEP {ctx.current_step} {'='*6}")
# Uncomment the following line for debugging purposes.
# if ctx.current_step >= 0:
# print(f"{'='*6} Completed forward pass for STEP {ctx.current_step} {'='*6}")

if ORT_NO_INCREASE_GLOBAL_STEP[0] is False:
ctx.run_ctx.global_states.execution_step += 1
Expand Down

0 comments on commit 57300d9

Please sign in to comment.