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

Method copy

tenseal/cpp/context/tensealcontext.cpp:596–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596std::shared_ptr<TenSEALContext> TenSEALContext::copy() const {
597 TenSEALContextProto buffer =
598 this->save_proto(/*save_public_key=*/true, /*save_secret_key=*/true,
599 /*save_galois_keys=*/true, /*save_relin_keys=*/true);
600 return shared_ptr<TenSEALContext>(
601 new TenSEALContext(buffer, this->_threads));
602}
603
604void TenSEALContext::load(const std::string& input) {
605 TenSEALContextProto buffer;

Callers

nothing calls this directly

Calls 1

save_protoMethod · 0.95

Tested by

no test coverage detected