Skip to content

Commit

Permalink
debug ndcg metrics qps
Browse files Browse the repository at this point in the history
Differential Revision: D65689878
  • Loading branch information
wilson100hong authored and facebook-github-bot committed Nov 9, 2024
1 parent 9a4d8a8 commit ead7c90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torchrec/pt2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def inner_forward(
**kwargs: Any,
) -> Any:
if hasattr(ref, "enable_pt2_compile") and ref.enable_pt2_compile:
# print("##### WH: PT2 compile enabled #####")
pt2_compiled_attr_name = f"_{f.__name__}_pt2_compiled"
if not hasattr(ref, pt2_compiled_attr_name):
setattr(ref, pt2_compiled_attr_name, torch.compile(f))
Expand Down

0 comments on commit ead7c90

Please sign in to comment.