Explorar el Código

Correted a print statement

Dmitriy Suponitskiy hace 1 año
padre
commit
ff7cd7b05d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/pke/simple-ckks-bootstrapping.py

+ 1 - 1
examples/pke/simple-ckks-bootstrapping.py

@@ -66,7 +66,7 @@ def simple_bootstrap_example():
 
     ciphertext_after = cryptocontext.EvalBootstrap(ciph)
 
-    print(f"Number of levels remaining after bootstrapping: {depth - ciphertext_after.GetLevel()}")
+    print(f"Number of levels remaining after bootstrapping: {depth - ciphertext_after.GetLevel() - (ciphertext_after.GetNoiseScaleDeg() - 1)}")
 
     result = cryptocontext.Decrypt(ciphertext_after,key_pair.secretKey)
     result.SetLength(encoded_length)