Skip to content

Commit aa56c83

Browse files
committed
solve broken devtool workflow
1 parent e7d39c2 commit aa56c83

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

devtools/inspector/_inspector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ def find_total_for_module(self, module_name: str) -> float:
12401240
for block in self.event_blocks:
12411241
for event in block.events:
12421242
# Skip OPERATOR_CALL events to avoid double-counting and exclude framework tax
1243-
if event.event_name == "OPERATOR_CALL":
1243+
if event.name == "OPERATOR_CALL":
12441244
continue
12451245

12461246
module_hierarchy = event.module_hierarchy.values()

docs/source/tutorials_source/devtools-integration-tutorial.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ def forward(self, x):
264264
df = df[df.event_name == "native_call_convolution.out"]
265265
if len(df) > 0:
266266
slowest = df.loc[df["p50"].idxmax()]
267-
assert slowest
268267
print(slowest.name)
269268
print()
270269
pp.pprint(slowest.stack_traces if slowest.stack_traces else "")

0 commit comments

Comments
 (0)