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

Method scale

src/sympc/encoder/fp_encoder.py:125–131  ·  view source on GitHub ↗

Scale for the FixedPrecision Encoder. Returns: int: the scale.

(self)

Source from the content-addressed store, hash-verified

123
124 @property
125 def scale(self) -> int:
126 """Scale for the FixedPrecision Encoder.
127
128 Returns:
129 int: the scale.
130 """
131 return self._scale
132
133 def __str__(self) -> str:
134 """Representation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected