Skip to content

Commit

Permalink
Log is_forward field to dynamo_compile scuba table (#2511)
Browse files Browse the repository at this point in the history
Summary:

X-link: pytorch/pytorch#138097

^^

Reviewed By: ezyang

Differential Revision: D64438144
  • Loading branch information
masnesral authored and facebook-github-bot committed Oct 17, 2024
1 parent 00c9b9e commit 8dca9fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions userbenchmark/dynamo/dynamobench/_dynamo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ def proxy_args_kwargs(args, kwargs):

@dataclasses.dataclass
class CompilationMetrics:
is_forward: bool = dataclasses.field(default=True, init=False)
compile_id: str
frame_key: str
co_name: str
Expand Down Expand Up @@ -814,6 +815,7 @@ class CompilationMetrics:

@dataclasses.dataclass
class BwdCompilationMetrics:
is_forward: bool = dataclasses.field(default=False, init=False)
compile_id: str
inductor_compile_time_s: Optional[float]
code_gen_time_s: Optional[float]
Expand Down

0 comments on commit 8dca9fb

Please sign in to comment.