Closed p719967821 closed 3 months ago
The runtime error you encountered for the CIFAR-10 networks should be resolved now in the latest commit. I will look into your questions regarding the client-side operations as soon as possible and follow up here.
Thanks!! In addition, CIFAR-10 network is ok.
I have pushed changes that maintain a consistent client-side API between the GPU and CPU variants (i.e., the GPU implementation had previously supported a dynamic message space which was phased out of the CPU implementation).
still something wrong
and when I removed "&",it can be worked, but
If modified in this way, there will be such a problem. If the Int type data are also placed in one ctxt ciphertext(i.e., xxxxx->enc_segs[0][i].ctxt[0]), why does the relu function still have operations such as shifting and AND each bit with opposite MSB(IntOps::relu())
Apologies for the problem with the last commit, I have amended it.
hello,sir!There were no issues during this compilation and execution, but I can't get the correct decryption result.For example, I encrypted 0, but it was decrypted into 8 through the sign1024*3 neural network; I encrypted 5, but it was decrypted into 4 through the sign1024*3 neural network In addition, could you please answer the confusion I raised in my previous question?
I am investigating the issue and will provide updates directly to this thread.
@p719967821 Hello, how do you solve the problem that your network decryption cannot get the correct answer? I also encountered this problem on the relu network.
hello,sir!sorry to bother you again. I have identified some issues in the code and confused about some of the content, so I am raising the following questions in the hope of receiving your answers.
there is an error in the 72 line of encrypt_imagegpu.cu. it should be `pt[i-count].message = (ptxtval>>(i-count))&1;
instead of
pt[i-count].message = (ptxt_val>>i)&1;`I couldn't find
bitsize.data
in any of the folders, so executingmake redcufhe_decrypt_image
will result in an error.I imitated your codedecrypt_image.cpp
and rewrote the file. The code is as follows, but I cannot get the correct classification result. Is there a problem with my code? in nets/mnist/sign1024*3/main.cu :in decrypt_image_gpu.cu :
3.Why did you encrypt integers in TFHE directly into a lweSample instead of converting each pixel into binary first, encrypting each binary into ctxt separately, and then processing it like cuFHE?
4.in IntOps_gpu.cu,Why only add the 0th bit of the ctxt array instead of adding the entire ctxt array in integer form?
5.I tried to use all networks for inference, sign1024 3 and relu1024 3 were okay, but when I ran to binarynet and binarynet_small, an error occurred.