Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/23692
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 7dfd390 with merge base 03b4623 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "release notes: devtools" |
|
@u7k4rs6 could you update the branch and ping for review? |
|
thanks @nil-is-all, updated. @Gasoonjia ready for review when you get a chance. |
|
@claude review |
|
Claude finished @nil-is-all's task in 4m 34s —— View job Delegated models still aren't handled: only the outer instruction-id keys get converted to Detailed reviewPR Review: #23692SummaryThe PR converts the instruction-id keys of the ETRecord debug-handle, delegate and num-outs maps to Code Quality
Testing
RecommendationRequest Changes The nested delegate-map keys need normalizing, ideally in Note: the reviewers couldn't run Python in this environment, so the new test wasn't executed and all findings come from reading the code. |
|
good catch, thanks. the nested delegate_map keys were still ints, so an unmapped delegate id would hit that TypeError. I switched it to round-trip the maps through json so they match what parse_etrecord gives, and added a test with a delegated event (one mapped, one not). kept it in the Inspector since other code reads the etrecord maps with int keys, but can move it to parse_etrecord if you'd rather. |
|
thx it lgtm! i will stamp after ci passes! |
if you pass an ETRecord object to the Inspector instead of a file path, debug handles never resolve. the object's maps have int keys but _gen_resolve_debug_handles looks them up as strings (what you get after save/parse), so every event gets debug_handles=None and no error.
now the maps go through a json round trip in _consume_etrecord so both cases look the same. added a test comparing the object and the saved file, including delegated events.
cc @Gasoonjia @nil-is-all