MCPcopy Create free account
hub / github.com/OpenMined/SyMPC / precision

Method precision

src/sympc/encoder/fp_encoder.py:95–101  ·  view source on GitHub ↗

Get the precision for the FixedPrecision Encoder. Returns: int: precision.

(self)

Source from the content-addressed store, hash-verified

93
94 @property
95 def precision(self):
96 """Get the precision for the FixedPrecision Encoder.
97
98 Returns:
99 int: precision.
100 """
101 return self._precision
102
103 @precision.setter
104 def precision(self, precision: int) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected