Skip to content

Commit

Permalink
remove check bias_gurad at init
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyul-ryu committed Dec 22, 2023
1 parent bfa88ad commit 7883614
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/liberate/fhe/ckks_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ def __init__(self, devices: list[int] = None, verbose: bool = False,
self.ctx = ckks_context(**ctx_params)
self.ntt = ntt_context(self.ctx, devices=devices, verbose=verbose)

if self.bias_guard:
if self.ctx.num_special_primes < 2:
raise errors.NotEnoughPrimesForBiasGuard(
bias_guard=self.bias_guard,
num_special_primes=self.ctx.num_special_primes)

self.num_levels = self.ntt.num_levels - 1

self.num_slots = self.ctx.N // 2
Expand Down

0 comments on commit 7883614

Please sign in to comment.