You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I got some error when pickling ptxt. This is the error:
Traceback (most recent call last):
File "E:\NCKU\ICLab\code\Pyfhel-master\examples\Demo_4_SaveNRestore.py", line 172, in <module>
pkls_ptxt = pickle.dumps(p)
File "<stringsource>", line 2, in Pyfhel.PyPtxt.PyPtxt.__reduce_cython__
TypeError: no default __reduce__ due to non-trivial __cinit__
I'd like to encode the deep learning model's weights, then I can perform operations between the encrypted image and the encoded weights. However, when I attempt to encode the weights, a MemoryError might occur (I guess, because the code will stop without raising an error.) Therefore, I intend to pickle the encoded weights (Ptxt) to avoid overloading the RAM. Pickling ctxt doing well in #81, but pickling ptxt gets error.
Do you have any advice?
The text was updated successfully, but these errors were encountered:
Thanks for your advice! It looks good when multiplying Numpy and Ctxt!
Regarding the pickling of Ptxt, I haven't had experience with Cython before, so I need to study it first.
Hello, I got some error when pickling ptxt. This is the error:
I'd like to encode the deep learning model's weights, then I can perform operations between the encrypted image and the encoded weights. However, when I attempt to encode the weights, a MemoryError might occur (I guess, because the code will stop without raising an error.) Therefore, I intend to pickle the encoded weights (Ptxt) to avoid overloading the RAM. Pickling ctxt doing well in #81, but pickling ptxt gets error.
Do you have any advice?
The text was updated successfully, but these errors were encountered: