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

Function save_load

tests/python/sealapi/test_context.py:89–95  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

87 testcase.set_coeff_modulus([sealapi.Modulus(1023), sealapi.Modulus(234)])
88
89 def save_load(path):
90 testcase.save(path)
91
92 saved = sealapi.EncryptionParameters(scheme)
93 saved.load(path)
94 assert saved.poly_modulus_degree() == 32768
95 assert saved.coeff_modulus()[0].value() == 1023
96
97 tmp_file(save_load)
98

Callers

nothing calls this directly

Calls 2

saveMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected