Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vhe.py encrypt() not working well #5

Open
Gaopeng-Bai opened this issue May 2, 2020 · 1 comment
Open

vhe.py encrypt() not working well #5

Gaopeng-Bai opened this issue May 2, 2020 · 1 comment
Assignees
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@Gaopeng-Bai
Copy link
Owner

Gaopeng-Bai commented May 2, 2020

This error appeared uncertainly that sometime working well, sometime not, when use encrypt(T, a) function with s.shape=(150,1), a.shape=(150, ). 

 "IndexError: index 22500 is out of bounds for axis 0 with size 22500"

Computer count from 0, so a list or numpy with size 22500 has the members d[0]..d[22499]. Index 22500 is definitely false to access numpy. But in this algorithm the reason unknow.

[gradient-secure-cifar100] utils/vhe.py (Line 63)


            result[i * l + j] = sign * int(bin(value)[length1 - j + 1])

Open on Web · Open in IDE

@Gaopeng-Bai Gaopeng-Bai self-assigned this May 2, 2020
@Gaopeng-Bai Gaopeng-Bai added bug Something isn't working invalid This doesn't seem right labels May 2, 2020
@Gaopeng-Bai
Copy link
Owner Author

Change l pareameter to 200 could be better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant