Skip to content

Commit

Permalink
Enable heap tracking by default in torch
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Jun 13, 2016
1 parent a167188 commit d749e36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,7 @@ end
-- alias for convenience
torch.Tensor.isTensor = torch.isTensor

-- remove this line to disable automatic heap-tracking for garbage collection
torch.setheaptracking(true)

return torch

0 comments on commit d749e36

Please sign in to comment.