fhelium.compile._materials
Describe numerical materials and optionally prepare missing Tensor bindings.
prepare_material_bindings
function View source
python
def prepare_material_bindings(compilation: Compilation, *, resources: CkksDeviceResources | RnsContext | NttContext | Iterable[CkksDeviceResources | RnsContext | NttContext]=(), keys: Mapping[object, object] | Iterable[object] | EvaluationKeySet=()) -> tuple[str, ...]: ...1
Fill missing Tensor bindings from supplied data providers and keys.
Key entries named by a symbol or its label are direct assignments and bypass metadata selection. Otherwise, descriptions select a single candidate using CKKS operand rows, placement, and compatible execution groups. Absent, ambiguous, or conflicting matches remain unresolved. Existing bindings are preserved. The returned symbols identify entries still requiring data; key generation is a separate provisioning operation.