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

Method __str__

src/sympc/encoder/fp_encoder.py:133–141  ·  view source on GitHub ↗

Representation. Returns: str: The representation.

(self)

Source from the content-addressed store, hash-verified

131 return self._scale
132
133 def __str__(self) -> str:
134 """Representation.
135
136 Returns:
137 str: The representation.
138 """
139 type_name = type(self).__name__
140 out = f"[{type_name}]: precision: {self._precision}, base: {self._base}"
141 return out

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected