tvm_tirx.tirx.script.expose_script_type

tvm_tirx.tirx.script.expose_script_type#

tvm_tirx.tirx.script.expose_script_type(type_key)#

Select a completed Type and publish it to declared API destinations.

Parameters:

type_key (str) – Fully qualified native type key whose reflection and constructor are ready.

Returns:

binding (Callable[…, Any] or None) – The built-in script binding for an ir or tirx prefix. Other roots return None; callers read their extension’s explicitly declared API module.

Raises:

ValueError – If a matching destination has a non-callable binding at a type alias.

Return type:

Callable[[…], Any] | None

Notes

All matching destinations receive the selection before the result is returned. An extension declares its destinations with _init_exposed_type_api; exposure does not register a parser default or infer an extension’s script destination.