PySyft icon indicating copy to clipboard operation
PySyft copied to clipboard

Handcrafted RNNs are not Tested At All

Open iamtrask opened this issue 6 years ago • 14 comments

Describe the bug This whole file seems to be largely un-tested by our unit testing suite. https://github.com/OpenMined/PySyft/blob/master/syft/frameworks/torch/nn/rnn.py

Expected behavior This file should have 100% test coverage.

Make sure to uncomment the codecov omit flag for this file https://github.com/OpenMined/PySyft/pull/2896#pullrequestreview-344948386

iamtrask avatar Jan 18 '20 15:01 iamtrask

I can take this up

ribhu97 avatar Jan 18 '20 15:01 ribhu97

Hi, I would like to know if this is still an active issue. If it is, could I take this issue?

jimboH avatar Feb 22 '20 17:02 jimboH

It is and you may!

Sent from my iPhone

On 22 Feb 2020, at 17:37, jimboH [email protected] wrote:

 Hi, I would like to know if this is still an active issue. If it is, could I take this issue?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

iamtrask avatar Feb 23 '20 11:02 iamtrask

Hi, I would like to work on this issue. Is it still active?

AniTho avatar Feb 23 '20 16:02 AniTho

@iamtrask thank you! I will work on it.

jimboH avatar Feb 23 '20 16:02 jimboH

@karlhigley thank you! I will start working on it.

AniTho avatar Feb 23 '20 16:02 AniTho

Sounds like you should both work together on it.

Sent from my iPhone

On 23 Feb 2020, at 16:46, AniTho [email protected] wrote:

 @karlhigley thank you! I will start working on it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

iamtrask avatar Feb 23 '20 16:02 iamtrask

@iamtrask I have to implement test case as you have done for conv2d which is by creating a sample object using torch nn and one of the custom implementation and then finding maximum absolute difference in the two model output?

AniTho avatar Feb 23 '20 17:02 AniTho

@jimboH Can you share anything through which I can contact you to collaborate?

AniTho avatar Feb 24 '20 17:02 AniTho

@AniTho Thank you! I got some troubles with rounding while testing the handcrafted RNNs but finally solved it. Would you take a look at the test_rnn.py file to see if it really test all the RNNs?

jimboH avatar Feb 25 '20 16:02 jimboH

Hi, I would like to work on this issue. Is it still active?

NileshPant1999 avatar Feb 25 '20 17:02 NileshPant1999

@jimboH yes I'd like to see the code.

AniTho avatar Feb 25 '20 17:02 AniTho

See #3092 for the current state of the testing effort.

karlhigley avatar Feb 25 '20 17:02 karlhigley

#3092 is merged. Do more tests need to be added ? @iamtrask @karlhigley If not, then you can close this issue.

sachin-101 avatar Mar 29 '20 13:03 sachin-101