fhelium.backend.ckks.codec._implementation
Registered CKKS codec implementations over numerical Tensor operands.
NativeDecodeImplementation
class View source
python
NativeDecodeImplementation()1
Decode coefficients on the operation input device.
Attributes
| Name | Type | Default/value |
|---|---|---|
name | 'native-ckks-decode' | |
operation_types | (ckks.DecodeOp,) | |
supports_in_place | False |
resource_requirements
method
python
def resource_requirements(invocation: OperationInvocation) -> tuple[ResourceRequirement, ...]: ...1
execute
method
python
def execute(invocation: OperationInvocation, inputs: tuple[torch.Tensor, ...], resources: tuple[BoundResource, ...], *, in_place: bool) -> tuple[torch.Tensor, ...]: ...1
NativeEncodeImplementation
class View source
python
NativeEncodeImplementation()1
Encode slots with supplied embedding tables and advancing rounding state.
Attributes
| Name | Type | Default/value |
|---|---|---|
name | 'native-ckks-encode' | |
operation_types | (ckks.EncodeOp,) | |
supports_in_place | False |
resource_requirements
method
python
def resource_requirements(invocation: OperationInvocation) -> tuple[ResourceRequirement, ...]: ...1
execute
method
python
def execute(invocation: OperationInvocation, inputs: tuple[torch.Tensor, ...], resources: tuple[BoundResource, ...], *, in_place: bool) -> tuple[torch.Tensor, ...]: ...1
NativeIntegerCoefficientsToRnsImplementation
class View source
python
NativeIntegerCoefficientsToRnsImplementation()1
Reduce integer coefficients using the supplied twice-modulus rows.
Attributes
| Name | Type | Default/value |
|---|---|---|
name | 'native-ckks-integer-coefficients-to-rns' | |
operation_types | (ckks.IntegerCoefficientsToRnsOp,) | |
supports_in_place | False |
resource_requirements
method
python
def resource_requirements(invocation: OperationInvocation) -> tuple[ResourceRequirement, ...]: ...1
execute
method
python
def execute(invocation: OperationInvocation, inputs: tuple[torch.Tensor, ...], resources: tuple[BoundResource, ...], *, in_place: bool) -> tuple[torch.Tensor, ...]: ...1