Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions exir/backend/backend_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,12 @@ def to_backend(
tagged_exported_program,
)

# Partitioner added delegation tags to the graph module nodes,
# we make sure to remove them after we finished partition_and_lower
for node in tagged_graph_module.graph.nodes:
if "delegation_tag" in node.meta:
del node.meta["delegation_tag"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if "delegation_tag" in node.meta:
del node.meta["delegation_tag"]
node.meta.pop("delegation_tag", None)


return ExportedProgram(
root=tagged_graph_module,
graph=tagged_graph_module.graph,
Expand Down
Loading