-
-
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
Remove protocol parameter in decrypt #3599
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3599 +/- ##
==========================================
+ Coverage 94.58% 94.62% +0.04%
==========================================
Files 160 160
Lines 17179 17192 +13
==========================================
+ Hits 16248 16268 +20
+ Misses 931 924 -7
|
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 a lot!
Can you check if there is a test to update/add to illustrate your change?
protocol = kwargs.get("protocol", None) | ||
if protocol: | ||
warnings.warn("protocol should no longer be used in decrypt") | ||
|
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.
Beware of the case where we have an AutogradTensor
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 thought that passing tests meant it's working fine, but yeah there was no tests for decrypting an AutogradTensor. Fixed that and added test for decrypting with/without grad
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.
🙌
Description
The PR remove the need to a
protocol
parameter indecrypt
and warn the user to not use it, without raising an error.Resolves #3329
Checklist:
(See the the contribution guidelines for additional tips.)