Skip to content

Commit

Permalink
empty cuda cache after epoch instead of batch
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamagarwal92 committed May 28, 2020
1 parent 6c4e2b8 commit 0e010a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def lr_lambda_fun(current_iteration: int) -> float:

scheduler.step(global_iteration_step)
global_iteration_step += 1
torch.cuda.empty_cache()
torch.cuda.empty_cache()

# -------------------------------------------------------------------------
# ON EPOCH END (checkpointing and validation)
Expand Down

0 comments on commit 0e010a4

Please sign in to comment.