Skip to content

Commit

Permalink
Update on "[memory_viz] profile_plot generates snapshot objects"
Browse files Browse the repository at this point in the history
This will make it easier to use a single html viewer for
both ways of generating the data. The next PR will change MemoryPlot.js
to simply read the snapshot information directly.

[ghstack-poisoned]
  • Loading branch information
zdevito committed Jun 15, 2023
2 parents f23ac61 + abd576e commit 06f90c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions torch/cuda/_memory_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,6 @@ def free(alloc, device):
if not seg['blocks']:
seg['blocks'].append({'size': seg['total_size'], 'state': 'inactive'})

with open('tmp.pickle', 'wb') as f:
pickle.dump(snapshot, f)
categories = ["unknown", *(c.name.lower() for c in Category)]
return trace_plot(snapshot, device=device, categories=categories)

Expand Down

0 comments on commit 06f90c5

Please sign in to comment.