fhelium.compile.frontend._pytorch_encoding
Encode PyTorch capture targets and literals as neutral IR attributes.
encode_literal
function View source
python
def encode_literal(value: object) -> object: ...1
Encode one immutable Python frontend value as JSON-compatible data.
target_symbol
function View source
python
def target_symbol(target: object) -> str: ...1
Return a stable textual description of a captured Torch call target.
The result names frontend semantics; it does not authorize an importer to load or execute a Python object with that name.