소스 검색

Correted a print statement

Dmitriy Suponitskiy 1 년 전
부모
커밋
ff7cd7b05d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)