OpenMined / TenSEAL

A library for doing homomorphic encryption operations on tensors
Apache License 2.0
837 stars 158 forks source link

Google Colab crash (tutorial 0) #365

Closed CameronGordon0 closed 2 years ago

CameronGordon0 commented 2 years ago

Running tutorial 0 on Google Colab (Python 3.7.12) causes the session kernel to crash. Tested using tenseal 0.3.5 and 0.3.6 on CPU and GPU instances.

Installation: 'pip install tenseal' Import: 'import tenseal as ts' Crash: 'context = ts.context(ts.SCHEME_TYPE.BFV, poly_modulus_degree=4096, plain_modulus=1032193)'

Creating the context causes the kernel to restart (the logs are listed below).

Screen Shot 2021-12-06 at 12 56 39 pm
bcebere commented 2 years ago

Hello,

Thank you for your patience.

After some investigation, it turns out the HEXL library was crashing on some configurations, including Colab envs.

The latest release, TenSEAL 0.3.8, should fix the issue.

Please let us know if you are still encountering the problem.