MCPcopy Create free account
hub / github.com/OpenMined/TenSEAL / helper_decode

Function helper_decode

tests/python/sealapi/utils.py:60–66  ·  view source on GitHub ↗
(scheme, ctx, test)

Source from the content-addressed store, hash-verified

58
59
60def helper_decode(scheme, ctx, test):
61 if scheme == sealapi.SCHEME_TYPE.CKKS:
62 encoder = sealapi.CKKSEncoder(ctx)
63 return encoder.decode_double(test)
64
65 encoder = sealapi.BatchEncoder(ctx)
66 return encoder.decode_int64(test)
67
68
69def helper_generate_evaluator(ctx):

Callers 9

save_loadFunction · 0.85
test_scale_manuallyFunction · 0.85
test_evaluator_unaryFunction · 0.85
test_evaluator_binaryFunction · 0.85
test_evaluator_plainFunction · 0.85
test_evaluator_expFunction · 0.85
test_evaluator_add_manyFunction · 0.85
test_evaluator_relinFunction · 0.85

Calls

no outgoing calls

Tested by 9

save_loadFunction · 0.68
test_scale_manuallyFunction · 0.68
test_evaluator_unaryFunction · 0.68
test_evaluator_binaryFunction · 0.68
test_evaluator_plainFunction · 0.68
test_evaluator_expFunction · 0.68
test_evaluator_add_manyFunction · 0.68
test_evaluator_relinFunction · 0.68