mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[Memory Viz] Add Compile Context to Visualizer (#152862)
Summary: Adds PT2 info to visualizer. Also makes sure we have a case when compile context is not in pickle file.
Test Plan: {F1977637362}
Differential Revision: D74202811
Pull Request resolved: https://github.com/pytorch/pytorch/pull/152862
Approved by: https://github.com/aaronenyeshi
This commit is contained in:
parent
6c025b5a82
commit
911b838aae
|
|
@ -980,6 +980,8 @@ function process_alloc_data(snapshot, device, plot_segments, max_entries) {
|
|||
text = `${text}, Total memory used after allocation: ${formatSize(
|
||||
elem.max_allocated_mem,
|
||||
)}`;
|
||||
const context = elem?.compile_context ?? 'None';
|
||||
text = `${text}, Compile context: ${context}`;
|
||||
if (elem.stream !== null) {
|
||||
text = `${text}, stream ${elem.stream}`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user