Does this implementation have the sign activation implemented?
jayavanth opened this issue · comments
Jay commented
WeiBenqiang commented
tfhe_bootstrap_FFT(bootstrapped + j, bs_key, mu_boot, multi_sum + j);
I think this function implements sign activation and bootstrapping at the same time.
/**
* result = LWE(mu) iff phase(x)>0, LWE(-mu) iff phase(x)<0
* @param result The resulting LweSample
* @param bk The bootstrapping + keyswitch key
* @param mu The output message (if phase(x)>0)
* @param x The input sample
*/
EXPORT void tfhe_bootstrap_FFT(LweSample *result,
const LweBootstrappingKeyFFT *bk,
Torus32 mu,
const LweSample *x)