[CI][Bugfix] Fix CI failures for "PyTorch Compilation Unit Tests" (#41940)

Signed-off-by: haosdent <haosdent@gmail.com>
This commit is contained in:
haosdent
2026-05-07 19:42:00 -07:00
committed by GitHub
parent 5f6a02812a
commit 57c2f724c1
+4
View File
@@ -141,6 +141,10 @@ class AlwaysHitShapeEnv:
def __init__(self) -> None:
self.guards: list[Any] = []
# Read by torch._inductor.codecache.FxGraphHashDetails (torch>=2.11)
# to incorporate user-provided dynamic-shape hint overrides into the
# cache key. We never override hints, so an empty dict is correct.
self.var_to_hint_override: dict[Any, int] = {}
def evaluate_guards_expression(self, *args: Any, **kwargs: Any) -> Literal[True]:
return True