Skip to content

Commit

Permalink
add compiled autograd to CompileId (#141907)
Browse files Browse the repository at this point in the history
Summary:
tlparse PR: pytorch/tlparse#83

X-link: pytorch/pytorch#141907
Approved by: https://github.com/ezyang

Reviewed By: huydhn

Differential Revision: D67551013

Pulled By: xmfan

fbshipit-source-id: 86af69d24568874ce4eb72faafa7084a293e957a
  • Loading branch information
xmfan authored and facebook-github-bot committed Dec 21, 2024
1 parent c03fa7c commit 10b95f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion userbenchmark/dynamo/dynamobench/_dynamo/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ def insert_nops(instructions: List[Any], code_options: Any) -> None:
torch_function_mode_stack=[],
)

return GuardedCode(code, CheckFunctionManager(frame.f_code, graph).guard_manager, CompileId(0, 0)) # type: ignore[arg-type]
return GuardedCode(
code,
CheckFunctionManager(frame.f_code, graph).guard_manager, # type: ignore[arg-type]
CompileId(frame_id=0, frame_compile_id=0),
)


class CompileCounter:
Expand Down

0 comments on commit 10b95f4

Please sign in to comment.