fhelium.compile._compilation
State carried through one caller-composed compilation.
Compilation
class View source
python
Compilation(program: Program, workspace: CompileWorkspace = field(default_factory=CompileWorkspace), reports: tuple[PassReport, ...] = (), material_bindings: dict[str, torch.Tensor] = field(default_factory=dict))1
Carry a Program, its bindings, workspace, and transformation reports.
material_bindings maps Program symbols to live Tensors. workspace carries caller inputs and pass-produced Python data; reports records the ordered pass history. Pipeline execution returns a new Compilation with the transformed Program and shares the workspace and binding dictionary across its passes.
Attributes
| Name | Type | Default/value |
|---|---|---|
program | Program | |
workspace | CompileWorkspace | field(default_factory=CompileWorkspace) |
reports | tuple[PassReport, ...] | () |
material_bindings | dict[str, torch.Tensor] | field(default_factory=dict) |