Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f42b77a

Browse files
zhxchen17facebook-github-bot
authored andcommitted
Fix issues with guard serialization on distributed types. (#162418)
Summary: Add more support for torch internal distributed data structures. X-link: pytorch/pytorch#162418 Approved by: https://github.com/dolpm Reviewed By: dolpm Differential Revision: D81927732 fbshipit-source-id: 50712f0052dff74332a8db3efe9f553b110bc53c
1 parent b8e3ab6 commit f42b77a

File tree

1 file changed

+2
-1
lines changed
  • userbenchmark/dynamo/dynamobench/_dynamo

1 file changed

+2
-1
lines changed

userbenchmark/dynamo/dynamobench/_dynamo/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ def _foo(...):
709709
if key not in compilation_time_metrics:
710710
compilation_time_metrics[key] = []
711711

712+
metrics = compilation_time_metrics[key]
712713
event_metadata = {}
713714
if metadata:
714715
event_metadata.update(metadata)
@@ -756,7 +757,7 @@ def _foo(...):
756757
finally:
757758
end_ns = time.time_ns()
758759
time_spent_ns = end_ns - start_ns
759-
compilation_time_metrics[key].append(time_spent_ns / 1e9)
760+
metrics.append(time_spent_ns / 1e9)
760761
chromium_log.log_event_end(
761762
event_name, end_ns, {}, start_ns, log_pt2_compile_event, compile_id
762763
)

0 commit comments

Comments
 (0)