Skip to content

Commit

Permalink
fix previous pytorch version (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: youkaichao <[email protected]>
  • Loading branch information
youkaichao authored Nov 4, 2024
1 parent 6ca9d8c commit 2ba8467
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions depyf/explain/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def __init__(self, original_code, module, cache):

try:
klass = getattr(torch._dynamo.guards, "GuardManagerWrapper", None) or \
getattr(torch._dynamo.guards, "GuardManager", None) or \
getattr(torch._C._dynamo.guards, "GuardManager", None)
assert klass is not None
cpp_guard = isinstance(guard_manager, klass)
Expand Down

0 comments on commit 2ba8467

Please sign in to comment.