fhelium.compile._specialization
Describe input conditions used to reuse a prepared computation.
ArgumentSignature
class View source
python
ArgumentSignature(name: str, kind: str, properties: tuple[tuple[str, object], ...])1
Record one argument's type, layout, and represented value state.
Tensor contents and storage addresses are excluded. Immutable Python scalar values are included because capture may use them to construct the Program. The initial matcher conservatively requires equality of all recorded fields.
Attributes
| Name | Type | Default/value |
|---|---|---|
name | str | |
kind | str | |
properties | tuple[tuple[str, object], ...] |
get
method
python
def get(name: str, default: object=None) -> object: ...1
Read one recorded property for a caller-selected pass pipeline.
CallSignature
class View source
python
CallSignature(arguments: tuple[ArgumentSignature, ...])1
Collect the conditions for one flat callable or Program invocation.
Attributes
| Name | Type | Default/value |
|---|---|---|
arguments | tuple[ArgumentSignature, ...] |
argument
method
python
def argument(name: str) -> ArgumentSignature: ...1
Return a named argument description.
SpecializationMiss
class View source
python
SpecializationMiss()1
Bases: RuntimeError
Report that execution requires a specialization not prepared yet.