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
x = np.array([[0,1,2,5],
[4,5,9,10],
[8,3,7,1 ]])
m = len(x)
n = m
w = 16
S = generate_key(w,m,n)
T=get_T(n)
c,S=encrypt_via_switch(x,w,m,n,T)
decrypt(c,S,w)
but I am getting this error
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
though your example in the article works fine.
The text was updated successfully, but these errors were encountered:
I tried the same code in the article, but I got error with the shape of the matrix . It is part 6 when you encrypt the XOR ANN. The code in the article need the methods ( innerProd, .. and the others) kindly if you could provide us with the full code. Thank you.
I was trying out your script in https://iamtrask.github.io/2017/03/17/safe-ai/ with multi dimensional arrays.
but I am getting this error
though your example in the article works fine.
The text was updated successfully, but these errors were encountered: