fhelium.backend.rns.format
Select the scalar representation used by device-local RNS resources.
RnsExecutionFormat
class View source
python
RnsExecutionFormat(dtype: torch.dtype, radix_bits: int)1
Describe one supported residue Tensor and Montgomery-radix pairing.
Attributes
| Name | Type | Default/value |
|---|---|---|
dtype | torch.dtype | |
radix_bits | int |
select
method
python
def select(moduli: tuple[int, ...], dtype: torch.dtype | None=None) -> 'RnsExecutionFormat': ...1
Select or validate a representation for the supplied prime basis.