Skip to content

Commit 6950ce2

Browse files
authored
Merge pull request #2413 from OpenMined/issue-2412
Closes #2412, remove simplification and detailing for plans
2 parents 9b3696e + e728e6d commit 6950ce2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/tutorials/Part 8 - Introduction to Plans.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,4 +819,4 @@
819819
},
820820
"nbformat": 4,
821821
"nbformat_minor": 2
822-
}
822+
}

syft/federated/plan.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,8 @@ def simplify(plan: "Plan") -> tuple:
624624
tuple: a tuple holding the unique attributes of the Plan object
625625
626626
"""
627-
readable_plan = sy.serde._simplify(plan.readable_plan)
628627
return (
629-
readable_plan,
628+
plan.readable_plan, # We're not simplifying because readable_plan is already simplified
630629
sy.serde._simplify(plan.id),
631630
sy.serde._simplify(plan.arg_ids),
632631
sy.serde._simplify(plan.result_ids),
@@ -656,7 +655,7 @@ def detail(worker: AbstractWorker, plan_tuple: tuple) -> "Plan":
656655
id=id,
657656
arg_ids=arg_ids,
658657
result_ids=result_ids,
659-
readable_plan=sy.serde._detail(worker, readable_plan),
658+
readable_plan=readable_plan, # We're not detailing, see simplify() for details
660659
is_built=is_built,
661660
)
662661

0 commit comments

Comments
 (0)