facebookresearch / CrypTen

A framework for Privacy Preserving Machine Learning
MIT License
1.52k stars 278 forks source link

Issue with Module Import: serial Not Appearing in crypten.common #513

Open Lockerns opened 2 months ago

Lockerns commented 2 months ago

Issue with Module Import: serial Not Appearing in crypten.common

Description

I encountered an issue with the crypten.common module where the serial module is not being exposed correctly, even though it is included in the __all__ list in __init__.py.

Details

It appears that serial is not being imported or exposed correctly within the crypten.common namespace.

Additional Information

knottb commented 2 months ago

Hmm, interesting. I seem to be able to reproduce this on my end, but not sure why. Seems to work fine internally:

https://github.com/facebookresearch/CrypTen/blob/main/crypten/communicator/distributed_communicator.py#L17

What is the use case for importing crypten.common.serial?