-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract a Role class from Plans #3201
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3201 +/- ##
==========================================
+ Coverage 94.60% 94.67% +0.06%
==========================================
Files 149 148 -1
Lines 15917 16023 +106
==========================================
+ Hits 15058 15169 +111
+ Misses 859 854 -5
|
syft/execution/role.py
Outdated
# TODO isn't it weird that state placeholders are both in state and plan? | ||
self.placeholders[tensor.id] = placeholder | ||
|
||
def fecth_placeholders_from_ids(self, obj): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo fetch_placeholders_from_ids
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Just fixed that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
@@ -17,7 +17,7 @@ def __init__( | |||
self, | |||
id: int = None, | |||
owner: "sy.workers.AbstractWorker" = None, | |||
tags: List[str] = None, | |||
tags: Set[str] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
# out += line | ||
|
||
# out += " return " | ||
# out += ", ".join(f"_{extract_tag(p)}" for p in self.find_placeholders("output")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this now? 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to because I don't find it very useful to print a list of actions like that... What do you think?
No description provided.