Skip to content

Commit 711de8c

Browse files
malfetfacebook-github-bot
authored andcommitted
Revert D66508492: Set remote cache version and backend type once in compilation metrics
Differential Revision: D66508492 Original commit changeset: 014722ba2cfb Original Phabricator Diff: D66508492 fbshipit-source-id: 9a27483aa5c6fd54f21fbbb9d56844e600cee3dc
1 parent c07f33b commit 711de8c

File tree

1 file changed

+0
-20
lines changed
  • userbenchmark/dynamo/dynamobench/_dynamo

1 file changed

+0
-20
lines changed

userbenchmark/dynamo/dynamobench/_dynamo/utils.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -996,24 +996,6 @@ def safe_str(item: Any) -> str:
996996
return ",".join(safe_str(item) for item in metric)
997997

998998
structured_logging_overhead_s = torch._logging.get_structured_logging_overhead()
999-
1000-
if torch._inductor.utils.should_use_remote_fx_graph_cache():
1001-
try:
1002-
from torch._inductor.fb.remote_cache import (
1003-
FbRemoteFxGraphCache,
1004-
REMOTE_CACHE_VERSION,
1005-
)
1006-
except ModuleNotFoundError:
1007-
REMOTE_CACHE_VERSION = None
1008-
inductor_fx_remote_cache_backend_type = None
1009-
1010-
remote_cache_version = REMOTE_CACHE_VERSION
1011-
backend = FbRemoteFxGraphCache.get_remote_backend()
1012-
inductor_fx_remote_cache_backend_type = type(backend).__name__
1013-
else:
1014-
inductor_fx_remote_cache_backend_type = None
1015-
remote_cache_version = None
1016-
1017999
common_metrics = {
10181000
"compile_id": str(torch._guards.CompileContext.current_compile_id()),
10191001
"start_time_us": start_time_ns // 1000,
@@ -1031,8 +1013,6 @@ def safe_str(item: Any) -> str:
10311013
"inductor_fx_remote_cache_miss_keys": _convert_collection_to_str(
10321014
"inductor_fx_remote_cache_miss_keys"
10331015
),
1034-
"remote_cache_version": remote_cache_version,
1035-
"inductor_fx_remote_cache_backend_type": inductor_fx_remote_cache_backend_type,
10361016
}
10371017

10381018
# TODO: The following are legacy fields, populated from the fields that replace

0 commit comments

Comments
 (0)