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

Method auto_rescale

tenseal/cpp/context/tensealcontext.cpp:378–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378void TenSEALContext::auto_rescale(bool status) {
379 uint8_t flag = uint8_t(status) << 1;
380 // switch it off
381 this->_auto_flags &= ~flag_auto_rescale;
382 // set it to status
383 this->_auto_flags |= flag;
384}
385
386void TenSEALContext::auto_mod_switch(bool status) {
387 uint8_t flag = uint8_t(status) << 2;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected