Skip to content

Commit

Permalink
Merge pull request #16 from JoongunPark/main
Browse files Browse the repository at this point in the history
[chakra][et_converter] Add Annotation for Graph Trace Observer in PyTorch
  • Loading branch information
srinivas212 authored Jan 10, 2024
2 parents e7d7a7c + e3f7039 commit 8f0edff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions et_converter/pytorch2chakra_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ def find_root_nids(
for node in nodes:
if "[pytorch|profiler|execution_graph|thread]" in node["name"]:
root_nids.append(node["id"])
elif "[pytorch|profiler|execution_trace|thread]" in node["name"]:
root_nids.append(node["id"])
if not root_nids:
raise ValueError("Cannot find a root NID")
return root_nids
Expand Down

0 comments on commit 8f0edff

Please sign in to comment.